Hi All,
I am aware that I can extract username and email from a Power Apps trigger by using the below:
@{triggerOutputs()?['headers']?['x-ms-user-email']};
@{triggerOutputs()?['headers']?['x-ms-user-name']}
However, I wish to be able to extract the "UPN" because I need to be able to pull manager information so that my flow will look like the following:
I have attempted to put the following:
@{triggerOutputs()?['headers']?['x-ms-user-id']}
into the "Get User Profile" connector's "User (UPN)" input, however this causes the flow to break. The flow does not fail, it in fact does not run at all so I am unable to see diagnostics. Does anyone have any suggestions? Thanks in advance.
I'm actually still having an issue with adding to the table in Excel. If I remove the user profile connector then it will add the row, but now I get this error:
Hi @ashleynicholson,
If you want to return data from the flow itself to your app you want to use this action.
Below is an older Microsoft (2018 release notes of this feature) document which explains this in a bit more detail:
Hi, this has resolved the issue (I didn't need to refresh the flow), and I believe that it was the "Respond to Power App" connector that I was missing. However, I don't understand how it fixed it and I'm unable to find documentation online that properly explains it, so if you have a few minutes can I ask for you to explain it please? Thanks in advance.
Hi @ashleynicholson,
Your setup looks ok, just tried the same property and that returns the UPN in a Get User Profile (v2) action.
Since it is not triggering at all, have you tried refreshing the flow?
https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-flows#refresh-a-flow
Below was my test for the repro btw.
1. Canvas App with button
2. Flow setup for the test
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2