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

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
Community Champion
Community Champion

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

 

 

 

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,888)