web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Flow triggered from ca...
Power Apps
Answered

Flow triggered from canvas app is sending email from current user

(0) ShareShare
ReportReport
Posted on by 22

Hello All,

I'm facing a bit of a weird issue when calling a flow triggered by Power app.

 

I have a flow with Power app trigger.

This flow has only one action - send an email V2 office 365 outlook

Email is sent to "user A". I'm User A

Connection used for this action is a service account "user B".

 

Power app button on select runs the above flow.

Now when any user clicks on the button,  flow sends the email from current user who triggered the power app.

I'm expecting the flow to send email from service account User B.

 

I'm have troubleshooting this issue but I haven't found a solution yet.

Things I have tried.

1. Change the Trigger from powerapp to say SharePoint. Emails gets send from user B.

2. Tried creating new app or new flow, the issue exists.

3. I have two existing flows which have powerapp Trigger and both of them are able to send email from connection reference that is user B.

4. Any new app or flow fails always sends email from current user and ignores the connection reference.

 

Interesting bit is when I as user A triggers the  flow then the email is sent from service account user B.

 

This is happening across different environments.

Any idea on how to further troubleshoot the issue?

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at

    Hi @AK06 ,

    Any Flow triggered directly from Power Apps will use the connection of the current user in all actions in the Flow.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • AK06 Profile Picture
    22 on at

    Thanks for replying mate but I have two existing flows which are triggered from powerapp. Both of them are able to send email from the connection that is being used instead of current user.

    Both of these flows were done few months back, unless something has changed since then , it looks like a bug to me. I'm unable find any documentation on it as well. I'm wondering how does those two workflow are working.

    If you create a new power app and trigger a flow from it which sends an email, what is your experience? Is it from current user or from connection?

  • AK06 Profile Picture
    22 on at

    And just to add, if I use a different connector like SharePoint create an item in the flow triggered by Power app - item is created by connection and not by current user

  • WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at

    @AK06 ,

    Always from the current connection. If I want one from the Flow connection, I use "when an Item is created" in SharePoint as the trigger and write the parameters to a new record in a "dummy" list.

  • AK06 Profile Picture
    22 on at

    Screenshot_20211210-101930_Gallery.jpg

     

    you and I have different experience.

    Check the flow screenshot - create item creates the item in list with connection account and not the user who triggered the powerapp.

    Send an email sends the email with current user account and not the connection account.

    My other existing flows, sends email with connection account.

     

    I'm going to try two things now.

    Use powerapp V2 trigger to see if there is any difference.

    Create a POC in my personal tenancy to rule out any account issues.

     

    Would be helpful if anyone reading this can give it a try and share their experience.

    Thanks in advance.

  • WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at

    @AK06 ,

    Please post how this goes - you may have found a bug or change. I know mail always is sent by the connected user (we send hundreds of emails in our apps and would have picked this up quickly if different). I have also just checked a Library with hundreds of photos done each day and they are all created by the user.

  • AK06 Profile Picture
    22 on at

    Hey,

    So i ran few test cases

     

    didn't work = Sent from current user account instead of connection account

    worked = Sent from connection account instead of  current user account

     

    1. PowerApps v2 - new app, new flow, new environment - Result didn't work

    2. New App calling existing flow sending emails - didn't work

    3. Testing on existing app and existing flow - It works as it used to

    4. Personal tenancy - new app , new flow - It works. It is sending emails from connection account and not user account.

     

    My next step would be to get a colleague in my tenancy to create an app and flow to test the experience. It looks like the issue is with my account when i create new connection for O365 outlook send email action

     

  • AK06 Profile Picture
    22 on at

    Update to this

    Asked a colleague to create a new app and flow. Email gets sent out from current user account.

    I'm just wondering, could it be related to IAM within our tenancy?

    @WarrenBelz if you have some time, would you mind testing out this scenario in one of your personal tenancies, if you have one?

  • Verified answer
    WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at

    Hi @AK06 ,

    Firstly I so not use PowerAppsV2, so that may be the issue. By "personal tenancy", do you mean my user environment? I just re-checked the Sent Items of my Service Account (it owns all Apps, Lists and Flows) and all emails in there are non-power apps triggered (we have a lot triggered by submitted forms) . As I mentioned earlier all photos are created by users in the field (the Flow is Power Apps triggered).

  • AK06 Profile Picture
    22 on at

    Thank you Warren for your help on this one.

    I guess my source of truth was wrong. The two existing flows and one app (all part of same solution) still uses connection reference rather than current user context triggering the flows.

    These were done atleast 6-8 months in past and there might have been some issue at that time so I'm assuming it is just working as is by chance or due to some bug.

    Since this existing apps or flows have not been updated since then I feel they continue to work.

    Any new apps or flow do run by current user context.

    Even new app calling the existing flows run in current user context.

    The issue might be with the existing app.

     

    For now, i believe we can agree on the fact the Flow triggered from a power app runs on current user context and not the connection.

     

    Thank you and really appreciate your help.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard