How to pass multiple trigger expressions in when a file is created or modified trigger settings

Podili Vijay 20 Reputation points
2023-03-18T10:27:53.19+00:00

My logic app trigger is when a file is created or modified so I was pass two file path expression in when trigger settings if I upload the file in in first path first expression is successful trigger if I uploaded the file in second path second expression in trigger settings is not excute below is my Tigger settings how i can pass the expressionsIMG20230318153518~2

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Mike Urnun 9,792 Reputation points Moderator
    2023-03-24T00:29:15.2866667+00:00

    Hello, @Podili Vijay - Thanks for reaching out & posting on the MS Q&A!

    I doubt it'll work but could you try using the @or function like the one below?

    @or(equals(triggerBody()?['folderPath'], '/path1'), equals(triggerBody()?['folderPath'], '/path2'))
    

    The reason why I'm doubtful is because of the following statement on the doc:

    This operation triggers a flow when one or more files are added or modified in a folder. The trigger does not fire if a file is added/updated in a subfolder. If it is required to trigger on subfolders, multiple triggers should be created.

    The trigger conditions might come in handy for use cases where the workflow is watching for files with specific extensions or naming conventions, etc.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.