cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

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
Highlighted
Community Support
Community Support

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.
Highlighted
New Member

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')
)
Highlighted
Dual Super User III
Dual Super User III

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

 

 

 


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted
New Member

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,996)