Hello guys,
I just started using flow this and I'm impressed by how much it will make my life easier.
I've tried to automate attachment fetching, which seems to works fine but having multi attachments in the same email caused a lot of troubles.
I want to know how to filter the attachment and select the right one before creating a file in sharepoint.
many thanks
Solved! Go to Solution.
Hi @Ammar,
Then you only need to determine if the Attachment Name contains a specific string.
Image reference:
Take a try.
Best Regards,
You can use an condition and evaluate the attachment file names in a loop using string expressions.
Can you give me an example of how you want to filter the files?
Scott
@ScottShearer Many thanks Scott,
I was hoping to do something like regex but not sure how to implement this in flow, currently, I'm doing this in R and it looks like this
"^Daily.*"
Hi @Ammar,
Currently MS Flow does not support the use of regular expressions.
Could you provide specific filter condition?
You could filter the files by using the function provided in Expression.
Please provide more details and we would provide proper workaround for you.
Best Regards,
Barry
Thank you @v-bacao-msft,
I hope to be able to filter any file containing a certain string, for example, the word "daily".
many thanks
Hi @Ammar,
Then you only need to determine if the Attachment Name contains a specific string.
Image reference:
Take a try.
Best Regards,
Many thanks @v-bacao-msft,
That worked!
My mistake is locating the condition at the wrong level.
cheers
Ammar
Hi, newbie here
Just wondering if this would work for a whole email received or filter each attachment.
I mean, if there are more than an attachment and condition will save or drop only ones that meets the criteria and does otherwise for the rest?
Thanks,
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
40 | |
33 | |
28 | |
27 | |
27 |