I have a Sharepoint List and want to use the flow: Send Automatic email when new item added.
The flow originally worked for me, however when another user adds a new line item, the flow does not work.
I need this Flow to work so when anyone from my team enters a new item in the Sharepoint list, the email is sent from their email.
I updated the flow with "Get user profile (V2)" and added "Created By"
Is the problem because the first part "When a new item is created" is with my Connections?
Error Details: Action 'Send_an_email_(V2)' failed
Error from token exchange: Connection msmanaged-na/logicflows/9673d215-956c-47c3-9fae-d06ad75db9aa@https://msmanaged-na.azure-apim.net/ is not allowed to access connection msmanaged-na/office365/shared-office365-22124dd8-74d4-4ac0-87df-b8db-0418b119
Hi!
Just remove the value you assigned to 'From' and your flow will work properly.
THe point is, you do not have permissions to send emails on behalf of whoever created the item. Think about it: from a security perspective you need the right permissions to do it.
AS @Pstork1 explains in this great response
"...How to send an email in a Flow without changing the connection but have the email come from another user's mailbox. That can be done by changing the FROM field, under advanced options, in the Send an Email V2 action. But for that to work the maker of the Flow must have Send As permission to the mailbox the email should come from. That can be assigned by an Exchange Administrator or the person who owns the mailbox. This approach doesn't change ownership of the flow, only where the email comes from."
Hope this helps
Hello,
I currently have the From as "Created By"
'Send an email' is failing. I guess you assigned a value in the From header, right? If so, you probably do not have permissions to send emails on behalf of this email address, and the flow fails.
Just to make sure, please expand 'Send an email' action block design by doubleclicking on it (make sure you also click on 'show more details' to see all its current inputs. Once done please share a screenshot.
Hope this helps