cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
PowerAppsDaniel
Level: Powered On

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
PowerAppsDaniel
Level: Powered On

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

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
Dual Super User
Dual Super User

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

Hey @PowerAppsDaniel 

 

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!

Super User
Super User

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

Hi @PowerAppsDaniel 

 

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

PowerAppsDaniel
Level: Powered On

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

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

PowerAppsDaniel
Level: Powered On

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

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
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,848)