cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Resolver III
Resolver III

Adding managed metadata from string

Hello,

 

I have multiple files with names that i need specific parts from. Getting the string is not an issue, but that string is managed metadata.

For example, if the file name is: '123 abc ABC 123.docx',  I get the 'abc' from that.

 

When i add that string to a Man-Metadata column, it is invalid. I get the following error: The data returned from the tagging UI was not formatted correctly.

 

Is there any way to get the Tagging ui so i can add the string as Man-Metadata?

 

Regards,

1 ACCEPTED SOLUTION

Accepted Solutions
Resolver III
Resolver III

I was able to add Managed metadata, but i was only able to do it for MM that has been used before on a list.

 

1. add 'Get items' action

2. Set Top count to '1'

3. filter Query on 'Term eq '<TermName>''

4. 3 compose actions (TermName, TermGUID, concat)

  first(body('GetUsedTerms')?['Value'])?['Term']
first(body('GetUsedTerms')?['Value'])?['IdForTerm']
@{outputs('Get_Term_Name')}|@{outputs('Get_Term_GUID')

5. Add the ouput of the last 'Compose' in the MM-field

 

Again, this only works on Terms that have been used before. i added a condition where it adds the term to a table if the length = 0, that i paste in an email. This way i receive an email of the terms that were not added

View solution in original post

2 REPLIES 2
Community Support
Community Support

Hi @PVosEska,

 

Update managed metadata in the Update item action is not supported yet. If you want to this, the workaround is using the Send HTTP request to SharePoint, there is a blog introduce how to configure the rest API, it could help you:

https://blog.hubfly.com/update-managed-metadata-field-through-rest-api-in-sharepoint-framework/

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Resolver III
Resolver III

I was able to add Managed metadata, but i was only able to do it for MM that has been used before on a list.

 

1. add 'Get items' action

2. Set Top count to '1'

3. filter Query on 'Term eq '<TermName>''

4. 3 compose actions (TermName, TermGUID, concat)

  first(body('GetUsedTerms')?['Value'])?['Term']
first(body('GetUsedTerms')?['Value'])?['IdForTerm']
@{outputs('Get_Term_Name')}|@{outputs('Get_Term_GUID')

5. Add the ouput of the last 'Compose' in the MM-field

 

Again, this only works on Terms that have been used before. i added a condition where it adds the term to a table if the length = 0, that i paste in an email. This way i receive an email of the terms that were not added

View solution in original post

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (27,570)