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

Unable to email from flow?

I currently have a flow that takes HTML from Powerapps and converts it into a PDF then saves it to OneDrive. I would like to add one more step to this process and have that document emailed to someone (it will be the same person every time) but every time I try to add this process, it fails. 

Here is what I have currently: 

1.png

2.png3.png

I have also tried sending without attachment just for testing purposes and it still failed. I'm very new to flow so not sure what I'm doing wrong

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
modernoddity
Level: Powered On

Re: Unable to email from flow?

@edgonzales So I went ahead and rebuilt the flow with the new email step at the end and it works. I have no idea why it won't work with the other one since they're identical in every way.... but it's working. 

 

Thank you again for your help! 

12 REPLIES 12
Super User
Super User

Re: Unable to email from flow?

@modernoddity 

Hi there!  Can you show us the error that is coming along with the 'fail'?  That'll help narrow things down, I think.

 

-Ed-

 

modernoddity
Level: Powered On

Re: Unable to email from flow?

@edgonzales 

No error, it just says failed and no further information Smiley Sad 
failed.png

Super User
Super User

Re: Unable to email from flow?

Ok, cool.  If you click on the step that failed, it should give you some more information

20190725.PNG

 

modernoddity
Level: Powered On

Re: Unable to email from flow?

@edgonzales 

 

Thanks! I was trying to click on the little red circle lol. 
Here's the error

 

Screenshot_14.png

Super User
Super User

Re: Unable to email from flow?

Just checking on this:  Did you add the email step after a run, and are getting the errors on a test from a previous run?  Or are we triggering the Flow all over again?

modernoddity
Level: Powered On

Re: Unable to email from flow?

@edgonzales 

 

I'm using a previous run 

Screenshot_15.png

Super User
Super User

Re: Unable to email from flow?

That might be the issue.  Try re-triggering the Flow now that you've got an additional connector.  Meaning: go back to your PowerApp and make a fresh Flow run.

modernoddity
Level: Powered On

Re: Unable to email from flow?

@edgonzales 

 

Screenshot_16.png

 

Error details:

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

Super User
Super User

Re: Unable to email from flow?

All of this seems to be yelling about OneDrive, and we get the same error if we pull the attachments off of the email?

I'll keep digging.

modernoddity
Level: Powered On

Re: Unable to email from flow?

@edgonzales 

Yes, same result without the attachments. I found something that said I have to completely rebuild the Flow but I'm hoping to avoid that if possible. 

modernoddity
Level: Powered On

Re: Unable to email from flow?

@edgonzales 

 

Also... thank you for your help Smiley Happy I really appreciate it

Highlighted
modernoddity
Level: Powered On

Re: Unable to email from flow?

@edgonzales So I went ahead and rebuilt the flow with the new email step at the end and it works. I have no idea why it won't work with the other one since they're identical in every way.... but it's working. 

 

Thank you again for your help! 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow 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 Flow Community Video Gallery!

Users Online
Currently online: 64 members 4,863 guests
Please welcome our newest community members: