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

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,336)