cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
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

Highlighted
New Member

Re: Attachment Flow

Thanks,

I will check it shortly.

 

Frank

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

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,335)