Hi! I'm trying to update a value of a managed metadata SharePoint field with a value from a variable that gets updated during the flow. For example I have a term store with valued alpha, beta, gamma, omega and I would like to set value of the term store field with one of the values passed based on some conditions in the flow.
The issue I have that although we support setting managed metadata fields in Flow, it is expected to provide the value in form of Term name|Term Guid. I have unique name of the term, but I'm unable to get the term GUID.
Any idea where to get the term GUID from or there is some way to update the metadata field by providing just term name?
Hi @PWrobel,
If the term name is unique, you could use the Get items with Filter query to find the unique item, then update it though Update item action, for example:
If the term name is unique, the return value of Get items will only one, then the Apply to each will loop once.
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.
Hi Lin, I have one question - in this case do we need to have on the list an item that already has this term assigned? If there is no item with this term as value in field then it will not work, correct?
Hi @PWrobel,
Yes, if there is no such term assigned in the list, then the Get items action will return null, you can create a condition before the Update item action to determine the length of Get items whether is equal to 0. -If it not equal to 0, update item:
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.
User | Count |
---|---|
78 | |
54 | |
52 | |
42 | |
42 |
User | Count |
---|---|
81 | |
79 | |
76 | |
68 | |
43 |