cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
fschuurman
New Member

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
Community Support

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
Community Support

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
New Member

Re: Attachment Flow

Thanks,

I will check it shortly.

 

Frank

fschuurman
New Member

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

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (8,237)