I am creating a flow that will save an attachment to a specific file location i have that working just fine, what i am wondering is if there is a way to say only save the files i want based on extention.
For example a new email come's in that has two attachments one is a .pdf and the other is a .docx, is there a condition or switch or anything i could put in my flow to say i want to save the attachment that is a pdf to the file system but ignore the word document (.docx)
Any help would be wonderful. Thank you
Solved! Go to Solution.
Hi @Anonymous,
We could add a condition to check if the Attachment name contains the pdf, in the following way:
Doing in this way would only save the pdf file in the proper folder.
Regards,
Michael
Also to add to this is there also a way to ignore email signatures, it seems like when i save attachments to the file system it will also save any images that are in a email signature.
Hi @Anonymous,
We could add a condition to check if the Attachment name contains the pdf, in the following way:
Doing in this way would only save the pdf file in the proper folder.
Regards,
Michael
This did work great for me i did expand it more and did advanced conditioning like this ' @or(contains(item()?['Name'], 'pdf'), contains(item()?['Name'], 'docx'), contains(item()?['Name'], 'xlsx'), contains(item()?['Name'], 'zip')) '
just more info for anybody searching for the same solution
Join digitally, March 2โ4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
33 | |
16 | |
15 | |
14 | |
9 |
User | Count |
---|---|
40 | |
20 | |
18 | |
10 | |
9 |