Hi,
I am new to using MS flow (Power Automate) and I am still finding my way around this application.
Also I am new to this forum so I apologise in advance if the information below feels incomplete.
I am trying to design a flow for a SharePoint library. In this library there is a Region column which permits multiple managed metadata tags. The flow that I am trying to create applies a specific region metadata tag when a particular text is present in the file name. This works fine when its just one tag to apply however, the flow fails when it tries to apply multiple tags.
From what I have researched and understood that with managed metadata it must be in 'Tag Label|GUID' format which is what I have currently. This works well when its only one tag to apply. However, when its mutiple tags I get this error 'The given value for a taxonomy field was not formatted in the required <int>;#<label>|<guid> format.'
I then updated my flow to apply metadata tag to 'Wssid;#Tag Label|GUID' I then get this error 'The data returned from the tagging UI was not formatted correctly'.
By this time I feel I am running around in circles and therefore would like some expert guidance to takle this hurdle.
Below is the snapshot of the key steps of the flow I have created. In the compose action I have used contains expression to define the outputs in various scenarios i.e. whether filename contains text AU or SG or DXB etc

In the below action I have used the conditional expression if to apply the relevant tag when the output in the compose action above is true
