cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Flow with Send an email (V2) not working with a certain email account

Hi Power Automate Community!

 

I was updating a Flow that I once posted here looking for help.

 

TL;DR: I wasn't able to use the Outlook connector because I didn't have access to a service account, but now I do. However, when I try to connect the Send an email (V2) connector to the new account it gives me the following error:

 

InvalidTemplate. Unable to process template language expressions in action 'Send_an_email_(V2)' inputs at line '1' and column '2677': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_office365_1']['connectionId']' cannot be evaluated because property 'shared_office365_1' doesn't exist, available properties are 'shared_onedriveforbusiness, shared_commondataservice, shared_office365, shared_excelonlinebusiness_1'. Please see https://aka.ms/logicexpressions for usage details.'.

 

errorflow.PNG

If I change the connection to my account instead of the service account it works again properly. I've seen other similar posts which suggests deleting it and building it again, but it didn't work for me. It just doesn't work with the account that needs to work with.

 

Hope you can help me and thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Hi @yashag2255,

 

It is triggered from a Power Apps control. However, if I delete it I am no longer able to see it from Power Apps (Action > Power Automate) as the following image shows:

 

 

Looks like you haven't created any flows yet. To get started, select 'Create new flow' below.

 

 

expenses1.PNG

 

 

 

View solution in original post

4 REPLIES 4
yashag2255
Dual Super User II
Dual Super User II

Hey @Anonymous 

 

Any chance this flow is being triggered from a PowerApps control or any external such control? If so, I would recommend to delete the flow from that control and add it back again. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

manuelstgomes
Super User II
Super User II

Hi @Anonymous 

 

I think this is an issue with permissions. Probably the new permissions to this account haven't propagated yet. Your flow is correct since you can use your account, and all works fine. 

 

Flow sometimes sticks too long with connections, even if they change. Try the following. Export your Flow and re-import it again. Then Flow will be forced to fetch the new connection, and maybe this will solve your issue.

 

If you're not familiar with import and export, here's how to do it.

https://manueltgomes.com/microsoft/flow-how-to-import-a-flow-template/

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

Anonymous
Not applicable

Hi @yashag2255,

 

It is triggered from a Power Apps control. However, if I delete it I am no longer able to see it from Power Apps (Action > Power Automate) as the following image shows:

 

 

Looks like you haven't created any flows yet. To get started, select 'Create new flow' below.

 

 

expenses1.PNG

 

 

 

View solution in original post

Anonymous
Not applicable

I just solved it by recreating the flow from INSIDE the Power App (Action > Power Automate > Create New). Not quite the approach you would expect to be honest 😞

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (15,179)