cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RosstheBoss
Frequent Visitor

Sending an email with multiple attachments pulled from another email.

I am trying to have a flow that automatically pulls attachments from certain emails and forward them onto the appropriate person. I have managed to pull the attachments using a variable array, but when I do it this way they end up corrupted and unable to be opened properly. Is there something I can do to fix this issue?

 

2.png1.png

1 ACCEPTED SOLUTION

Accepted Solutions
ekarim2020
Community Champion
Community Champion

The following is from a working flow which uses two Apply to each loops:

2021-10-04_20-49-39.jpg

Hope this helps.


Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

8 REPLIES 8
ekarim2020
Community Champion
Community Champion

The following is from a working flow which uses two Apply to each loops:

2021-10-04_20-49-39.jpg

Hope this helps.


Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Thank you for the assistance Ellis. A few quick questions. How does the Create File OneDrive section work, is there a way to not create a file as part of the flow? And where do you get the values input, my version does not seem to have that as dynamic content?

ekarim2020
Community Champion
Community Champion

Please ignore the Create File OneDrive. I took the flow from a working flow but should have mentioned that this action is not needed.  I have now blanked out that action from the previous post.


Ellis

 

 


____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

Thank you for the clarity on that. I am still have an issue finding the value output to use, or was that part of the One Drive and not something I should worry about?

 

Checking my attachments the hover over I have is different than yours, could that be the cause of my issue as my attachments are still being sent corrupted?

 

1.png

ekarim2020
Community Champion
Community Champion

The flow uses the "When a new email arrives (V3)" trigger:

ekarim2020_1-1633439287237.png

Try using the value for the Apply to Each loop which can be selected from Dynamic content as shown below:

2021-10-05_14-05-31.jpg

See if you can re-create the flow using the above as the template.

There seems to have been a change in the structure of response body between "When a new email arrives (V2)" and "When a new email arrives (V3)". V3 body:

2021-10-05_14-16-02.jpg


Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

That seems to be an issue for me to find. When I search for value nothing appears. I am using the online version, does that effect functionality at all?

 

2.png1.png

ekarim2020
Community Champion
Community Champion

That's very odd. You should see the dynamic content for the email trigger action:

ekarim2020_0-1633441266912.png

Two things you can try:

(1) Delete the trigger, then re-add the trigger action, or

(2) Use an expression to reference the attachments as show below. Only one Apply to each loop is used here:

 

2021-10-05_14-38-27.jpg


Ellis


____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

Sadly that did not seem to work. But thank you very much for the help!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,352)