Hello guys!
I'm facing a problem in power automate. I have a button in a canvas application that triggers a flow. This flow that is triggered sends a mail to a particular user. The sending the mail part uses the Office 365 Send an Email V2 action. The problem here is that, the email is sent in the name of the user that triggered the flow from the canvas application and not from the user that created the flow. To make this clearer:
abc@domain.com - user of the canvas application
def@domain.com - creator of the flow and the connection reference is made with this account.
When the canvas user clicks button, the flow is triggered and the mail is sent in the name of abc@domain.com This is not the behavior that I want. I want the mail to be only sent from def@domain.com
Please help
Well this is not actually a problem …If the flow is called / triggered from a powerapps app all the actions inside it runs under the caller connection, not the creator of the flow. As a user you cannot send emails on behalf of other user if you do not have rights.
What you can do is to use a generic shared mailbox, set send on behalf rights to this mailbox for all users of the app and set Send As property of the SendAnEmail action in powerautomate to this shared mailbox. It will look like you send emails from that shared mail box.
Hope it helps !
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
194 | |
68 | |
48 | |
42 | |
20 |
User | Count |
---|---|
253 | |
122 | |
83 | |
76 | |
69 |