cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
r96359
Helper IV
Helper IV

Condition to filter attachments by pdf and tif not working. Somehow bypassing condition and saving all attachments (used to work)

So I have used his several times but on this one the condition is not filtering by pdf and tif.

What am I missing? Seems like it's simple but I just don't know why the condition is not working as expected.

Please see below. Any help is appreciateda.PNG!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @r96359,

 

Oh, I understand what you want to do now, you just only want to save these attachments which extension is pdf and tif, but others not save, such as png, jpg, right?

It is caused by the error of the Create file part, please delete Apply to each 2 action and structure your Flow as below:

Annotation 2020-05-05 172459.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
r96359
Helper IV
Helper IV

A bit more info.

When testing, all 3 other graphics that are jpg & png come bask as false so how are they being saved in my file system?

The only true in my example is a pdf file so why would my jpg and png files be included if they are false?

Thanks!

 

aa.png

yashag2255
Dual Super User II
Dual Super User II

Hi @r96359 

 

Can you check if there are any trailing whitespaces after .pdf and .tif in the condition action? 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Hi @r96359,

 

I think it is possibly caused by the reason provided by @yashag2255, I tested on my side that reproduces your Flow, when there is no blank space after the ".pdf", it will works normally. But if I added a blank space after it, the condition will never met:

Annotation 2020-05-01 154521.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@yashag2255 

@v-litu-msft 

 

I was really hoping that I had a trailing or preceding space.

I do not have any spaces in the condition fields for .pdf and .tif.

The additional files I am getting back are image001.jpg, image002.png, image003.png

 

Looking at the test results, I do se that the condition input shows true for one file and false for the other 4 BUT when I look at the IF YES window, I see that there is also an APPLY TO EACH and that shows 4 files written.

See file below. Hopefully this helps figure out the issue.

Appreciate everyone's help!!

 

11.PNG22.PNG

Any other possible help offered?

Trailing spaces do not seem to be the issue.

Thanks!

Hi @r96359,

 

Oh, I understand what you want to do now, you just only want to save these attachments which extension is pdf and tif, but others not save, such as png, jpg, right?

It is caused by the error of the Create file part, please delete Apply to each 2 action and structure your Flow as below:

Annotation 2020-05-05 172459.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (2,728)