Hello @ChaitanyaNaykodi-MSFT - it is achievable by configuring Setting on the trigger
and adding the Trigger Condition: @endsWith(trigger().outputs?['headers']?['x-ms-file-name'], '.pdf')
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have an integration scenario where I need to pull documents from SharePoint Online and submit the content (PDF) to a downstream API. I'm using the When a file is created or modified in a folder trigger to pull documents from a SharePoint library. My question is whether there is a way to set a filter on the trigger so that only PDF documents are retrieved i.e. (*.pdf)?
Hello @ChaitanyaNaykodi-MSFT - it is achievable by configuring Setting on the trigger
and adding the Trigger Condition: @endsWith(trigger().outputs?['headers']?['x-ms-file-name'], '.pdf')
Hello @Ershad Nozari , AFAIK the filter cannot be set on the trigger itself but you can add a conditional statement to run any further actions only for PDF documents as shown below.
File content type
is equal to application/pdf
If you wish the trigger itself had the filter, you can create a feedback item on our UserVoice channel. Please let me know if there are any concerns. Thank you!