
Announcements
I want to create a flow that triggers when a file is created in a sharepoint folder and then goes to a condition which checks whether the file is a pdf or not. To do this, I need to get the file name with extension and check if it contains .pdf. But for the value of the condition statement, I do not see 'File Name with Extension' as you can see in the screenshot below. How can I achieve this?
Hi @Anonymous, the 'x-ms-filename-encoded' dynamic value does give you the filename with extension, but in an encoded format that you cannot use in the condition. So, you will need to initialize a string variable first with the 'x-ms-filename-encoded' value and then use the variable in the condition (see images below).
get-filename-with-extension-editview
get-filename-with-extension-runview
Hope this helps.