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

@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

@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

@edgonzales 

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

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

20190725.PNG

 

@edgonzales 

 

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

 

Screenshot_14.png

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?

@edgonzales 

 

I'm using a previous run 

Screenshot_15.png

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.

@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.'.

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

@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. 

@edgonzales 

 

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

@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
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.

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,564)