cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ckatz
Helper I
Helper I

OneDrive Trigger Condition - Only trigger if an excel file

Hello,

 

I have a workflow that uses the OneDrive When a file is created trigger. I would like to add a trigger condition that would only trigger the workflow if the file extension is .xls, .xlsm or .xlsx

 

I tried using the following trigger condition: @contains(base64ToString(triggerOutputs()?['headers/x-ms-file-name-encoded']), 'xls')

 

I am getting the following error:

Ckatz_0-1654694405841.png

 

Any thoughts on what the trigger condition should be?

 

Thanks

 

0 REPLIES 0

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (6,533)