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

Highlighted
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (7,842)