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 Automate / Power automate send em...
Power Automate
Answered

Power automate send email from current user

(1) ShareShare
ReportReport
Posted on by 64

Hi,

 

I have a use case that I want to email to be send from current user id who have created the item.

 

From address in the email should be the current user email.

 

can you please advice how to achieve the same.

 

Thanks in advance.

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at
    • If the flow is running using a Power Apps trigger then you can include the current user email address as a parameter when the flow is invoked.  That address could then be used in the From field.
    • If the flow is running from a manual Power Automate trigger then the email of the user invoking the flow is included in the dynamic content from the trigger. That address could then be used in the From field.
    • If the flow is running from an automated or recurrence trigger then it is running in the security context of the original maker.  In this case there is no current user, just the maker account.  That email could be used in the From field.

    Which of those triggers are you using?

  • GayathriTU Profile Picture
    64 on at

    Hi @Pstork1 

     

    Thanks for the response.

     

    I am using automated trigger , in send email action if I configure Created by email in "Send As" section it throws the following error "You are not authorized to send mail on behalf of the specified sending account."

     

  • Verified answer
    Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    If you are using an automated trigger then the flow is running in the security context of the maker.  To use a different email address to send an email the maker account would need to have "Send as" or "Send on Behalf of" permission to that mailbox.  If there are only one or two from accounts that is possible.  But if there are a lot of possibilities it becomes very hard to manage and is impractical. There is no workaround.

  • GayathriTU Profile Picture
    64 on at

    Hi @Pstork1 

     

    There will be lot of possibility in the email address so I will opt for PowerApps button trigger then. 

    And one more query , how to pass multiple value selected in Combo box people picker field form PowerApps to TO address in Power Automate send email action through button trigger.

  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    1) Here's the code for in Power Apps on the button.

    ClearCollect(myemails,ComboBox1.SelectedItems);
    SendEmail.Run(JSON(myemails,JSONFormat.Compact),User().Email);

    Create a collection from the SelectedItems in the Combobox.  Then use JSON() to translate that collection into a JSON formatted array as a parameter.

    2) Then in the flow.  Add a Parse Json action to parse the collection array you send as a parameter.  Since its an array you'll need an apply to each to get the emails into a semicolon delimited string variable.  Use that variable for the To:

    image.png

    Details

    image.png

    image.png

  • Gyllentid Profile Picture
    894 on at

    @Pstork1 I have gotten the User().Email into the flow, so I can just use it as the sender? IT will be recognized as a connection?

  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    Since the flow is triggered from Power Apps, you can use the email from the user triggering the flow in the SendAs field of the email.

  • Gyllentid Profile Picture
    894 on at

    Do you by any chance know if this is the same for if the flow is triggered instantly from a business process flow? I have a sense it should follow the same logic. @Pstork1 

  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at

    No, flows that are triggered automatically will run in the context of the original maker.  To use a different address in the From field requires that the maker has Send As permission to that mailbox.

  • Gyllentid Profile Picture
    894 on at

    @Pstork1  I see, its considered an automatic flow even if the person has to click a button to execute it in the business process flow.

    Apologies for the Swedish, its buttons that are the initiations of the flow: 

    Skärmavbild 2022-02-25 kl. 10.57.14.png

    Which means we can get the ID of the person triggering it. But there might be an ambiguous line here of what is an automated and an instant.

    Skärmavbild 2022-02-25 kl. 11.00.10.png

     

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 Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard