I have sharepoint integration set up and on the creation of a file in sharepoint have a triger of a flow that renames the folder to a specific format. This works fine but the flow is also running on the upload of a new file. How do I modify it so it only runs for the creation of new folders?
Thought you only wanted it to run on the creation of new folders?
How do I modify it so it only runs for the creation of new folders?
You need to add a Trigger condition so it only fires for Folders.
GO into your flow, click the ... on the Triggers header
Click Settings in the Popup menu
Add this to the trigger conditions and you should be golden
@equals(triggerBody()?['{IsFolder}'],true)
If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others
Cheers
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey