cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
fschuurman
Level: Powered On

Attachment Flow

I have tried solutions from earlier posts, but i get stuck with  something trivial probably. Am i overlooking something ? The conditions returns false

 

Knipsel.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Attachment Flow

Hi @fschuurman,

 

I have made a test on my side and don't have the issue that you mentioned.

 

Please add a Compose action before the condition to get the value of expression below:

toLower(items('Apply_to_each')?['Name'])

And then check if the value of expression contains ".pdf".

 

The screenshot of the flow as below:

Capture.PNG

The expression in the condition as below:

@contains(toLower(items('Apply_to_each')?['Name']), '.pdf')

The flow would run successfully as below:

Capture.PNG

 

Best regards,

Alice

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Attachment Flow

Hi @fschuurman,

 

I have made a test on my side and don't have the issue that you mentioned.

 

Please add a Compose action before the condition to get the value of expression below:

toLower(items('Apply_to_each')?['Name'])

And then check if the value of expression contains ".pdf".

 

The screenshot of the flow as below:

Capture.PNG

The expression in the condition as below:

@contains(toLower(items('Apply_to_each')?['Name']), '.pdf')

The flow would run successfully as below:

Capture.PNG

 

Best regards,

Alice

View solution in original post

Highlighted
fschuurman
Level: Powered On

Re: Attachment Flow

Thanks,

I will check it shortly.

 

Frank

fschuurman
Level: Powered On

Re: Attachment Flow

YES! i got it working. I was baffelt after 3 attempts, when i got an error thrown at me while creating the file. I altered the rights on the library, but that was not it. I needed to use the Compose Output while creating a document and not the  Current item content. After this, the flows works as promised. 

 

I made the library auto-delete the content after 30 days, and  so is the flow in compliant with GDPR regulations.

 

Cheers

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Coming Soon: T-shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors
Users online (6,064)