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

@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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,665)