cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
modernoddity Helper III
Helper III

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
modernoddity Helper III
Helper III

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! 

View solution in original post

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 Helper III
Helper III

Re: Unable to email from flow?

@edgonzales 

No error, it just says failed and no further information 😞 
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 Helper III
Helper III

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 Helper III
Helper III

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 Helper III
Helper III

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 Helper III
Helper III

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. 

Highlighted
modernoddity Helper III
Helper III

Re: Unable to email from flow?

@edgonzales 

 

Also... thank you for your help 🙂 I really appreciate it

modernoddity Helper III
Helper III

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! 

View solution in original post

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (7,113)