cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
T1Telehealth
Level: Power Up

Saving only pdf attachments from email to One Drive

I'm currently trying to build a flow to download only .pdf documents into my Business One Drive. I've set up the flow, but it works sporatically. Attached is what I've got built so far. 

 

Screenshot (7)_LI.jpg

4 REPLIES 4
Community Support Team
Community Support Team

Re: Saving only pdf attachments from email to One Drive

Hi T1Telehealth,

 

You said that the flow is working sporadically, do you mean that sometimes the PDF file will be saved to OneDrive for Business, while sometimes it will not? How long has this flow been working for you?

 

I created a similar flow, but so far I haven’t got the issue. All the files that “Attachment name contains .pdf” will be saved to OneDrive for Business.


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
j-c-j
Level: Power Up

Re: Saving only pdf attachments from email to One Drive

I try to save just PDF or PPTX and created following condidition. The Worklow does wether save PDF nor PPTX.

 

@or(
equals(items('Apply_to_each_Attachment_on_the_email')?['ContentType'], 'pptx'),
equals(items('Apply_to_each_Attachment_on_the_email')?['ContentType'], 'pdf')
)
Super User
Super User

Re: Saving only pdf attachments from email to One Drive

Hi

Can you try instead the following expression and see if the result fits your expectations?

 

or(contains(items('Apply_to_each_Attachment_on_the_email')?['Name'],'.pptx'), contains(items('Apply_to_each_Attachment_on_the_email')?['Name'],'.pdf'))

 

Hope this helps

 

 

 




If anybody solved your question, remember to mark its post as a solution!

Proud to be a Flownaut!





j-c-j
Level: Power Up

Re: Saving only pdf attachments from email to One Drive

Thank you, now it works. It seems that "content-type" does not like or clauses.

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!

Top Kudoed Authors
Users Online
Currently online: 60 members 4,898 guests
Please welcome our newest community members: