
Announcements
We are using SharePoint for our intranet site and each program area creates/updates their own site pages. I'm using PowerAutomate to break inheritance and assign unique permissions (i.e. only the content owner may edit the page, etc.). But the flow keeps triggering when the page is autosaved while in edit mode.
Is there a way I can add a trigger condition to check for the version (OData__UIVersionString)?
Currently, my flow runs and terminates when the version does not end with .0
body('Send_an_HTTP_request_to_SharePoint_Get_Site_Page')['d']['OData__UIVersionString']
you can check the value of
body('Send_an_HTTP_request_to_SharePoint_Get_Site_Page')['d']['CheckoutUserId']If it is null, it means that it has been published and is not in editing mode (it is not an autosave).