Hi I am building a Copilot bot but was wondering if it's possible to have the user that initiates the bot be used as the user that establishes the connection in a power automate flow that is called as an action in the bot's Topics.
What is happening right now is that regardless of what user initiates a bot conversation, the flows that are called in the bot under the topics all get processed under a specific user that created the flows and established those connections.
Is there any way to go around this?
I appreciate your responses! I am using Authenticate with Microsoft: Entra ID authentication in Teams and Power Apps.
And for right now it is deployed via Teams as an app.
That may be a side effect of the Dynamics F&O connector. What Authentication mechanism is the Bot set to use and where are you deploying it? Website, Teams, etc.
I am calling the flow as a Call an Action node on the bot in the Topic.
The flow is fairly simple:
1. When PVA calls a flow
2. Get a record (Dynamics Finance and Operations Connector) - This looks for specific data in the system and returns the values back to the chat conversation. This is the part that is using the connection that was set-up when creating the flow and this is where if possible I would like to have the flow run using the user that initiated the conversation with the bot.
3. Return values to PVA
How are you calling the flow from the bot? Normally that action uses a manual trigger which would then use the users connection. Which connectors in the flow are using the makers connection? Can you provide more specifics?
Another option is presented in this article. https://poszytek.eu/en/microsoft-en/office-365-en/pva-en/pva-series-user-context-in-power-virtual-agent/
WarrenBelz
146,786
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,093
Most Valuable Professional