Logic Apps SharePoint Connector - When a file is created or modified in a folder

Ershad Nozari 421 Reputation points
2021-04-01T20:46:20.173+00:00

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)?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,844 questions
{count} votes

1 additional answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 22,776 Reputation points Microsoft Employee
    2021-04-05T23:53:18.243+00:00

    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.

    1. On the trigger you need to set the "Infer Content Type" to yes.
      84683-image.png
    2. Then you can add a condition which checks if File content type is equal to application/pdf
      84647-image.png

    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!

    0 comments No comments