Hello Comunity,
Im trying to create a power automate flow, which triggers on "when a user is added to a certain team". The flow is supposed to get the Profile from the User and read out the officeLocation. Than it should add the User to a tag, which has the same name as his office location (e.g. the user works in berlin, so he is added to the tag called "berlin".)
The flow is simple enough:

This runs into the following Error :

After some trial and error, i figured out that the tag ID is indeed NOT the tag display name. If i choose the Tag manually, it would work, but this needs to get automated.
Here is a working example:

As you can see, the Raw Input is obviously not the same for the Tag ID. Can i somehow work around that?
I figured something like: Get all Tags from the team -> Read out Tag ID's -> Match Tag Display Name with users officeLocation -> Convert users officeLocation into Tag ID -> Done. Is there a way to make this work? I was not able to figure it our.
Thank you in advance!