I have a flow created that I trigger manually. Below is how it is designed:
While the SharePoint activities use my connection to fetch the information, I have setup the "Send an email(V2)" to use another connection instead. I practically had the other user ""EDIT"" this flow and change the connection to their account and save it.
Now when I trigger this flow, I hope to see an email sent from the other users inbox.
But that is not the case. I tried testing it and the email was generated from my mailbox itself. And not the other user to whose email the activity is already connected to. I have no idea why. Can someone help?
Additional Information that I think may help:
In the "Send an email(V2)" activity, under the "Advanced Options": I have left the "From(Send as)" empty. I did this because when I placed the other users email in that field, the flow would fail with the following errors:
{
"status": 403,
"message": "You are not authorized to send mail on behalf of the specified sending account.\r\nclientRequestId: XYZ\r\nserviceRequestId: ZYV",
"error": {
"message": "You are not authorized to send mail on behalf of the specified sending account.",
"code": "ErrorSendAsDenied",
"originalMessage": "The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account., Cannot submit message."
},
"source": "office365-ABC.azurewebsites.net"
}
Now the solution to the above error is actually available via different sources where the other user has not authorize me in the ""Send AS"" list. But we already have other flows with the similar design that works just fine when I trigger it(Sends email from the other users account). But this particular flow fails in doing that.
PLEASE NOTE: Before establishing a new connection to the "Send an email(V2)" , it was initially setup and connected to mine. But now we just need those emails delivered from the other users mailbox.
I am tagging a few users who have tried answering problems along the same lines. I hope I get some help here.
Solved! Go to Solution.
Hi @abm ,
I think that may work if the other user adds me in the delegation permission. However, I am showing you another flow here that actually works just fine WITHOUT the delegation permission. If I trigger this flow manually, it uses the other users mailbox accurately.
The only difference between this flow and the flow I am working on is that:
This is triggered on a recurrence. And my flow needs to be manually triggered.
And this flow uses SQL activities and my flow uses SharePoint activities(Both use my connection).
So why is it that this one works and mine does not?
Hi @sujitmu
Is the delegate permission is configured under outlook?
How to configure "send on behalf of" permission | Engineering | Virginia Tech (vt.edu)
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @abm ,
I think that may work if the other user adds me in the delegation permission. However, I am showing you another flow here that actually works just fine WITHOUT the delegation permission. If I trigger this flow manually, it uses the other users mailbox accurately.
The only difference between this flow and the flow I am working on is that:
This is triggered on a recurrence. And my flow needs to be manually triggered.
And this flow uses SQL activities and my flow uses SharePoint activities(Both use my connection).
So why is it that this one works and mine does not?
Hi @sujitmu
What is the Send Email connection settings? Is that authenticated as other user? Looks like that changes is not reflected. Could you create another flow with a single step Send an email and authenticated as other user?
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blog