This is probably easy, but I can't figure it out - how do I compose a "Post Message" step to post a message in teams as the person who triggered the Flow, not as me (the Flow owner)?
Flow is triggered by a checkbox in Dynamics:
- When box is checked "Yes" and record is saved...
- Flow is triggered ("When row is ...modified") -- Scope is Business Unit, so anyone can trigger it
- Flow then does some things like getting an @mention token and some other info from the Dynamics record that will go into the Teams post
- Flow also identifies the Team / Channel to post to
All of this works fine. - Flow then posts a message to Teams. But no matter what User executed the trigger in Dynamics, the post shows up as coming from me.
It's a great Flow, the only issue is that I want the Post in Teams to come from the person triggering the Flow in Dynamics, not from me.
Here is the step to "Post Message" - I have a feeling there is a way I can identify the executing user in Dynamics (probably via "Modified by") and then write a custom expression to replace "User" in the "Post As" field...but I can't figure it out.
