Forum Discussion
sonisick Try this:
- Run power automate flow using Site Collection Administrator (SCA) account.
- Check out the file explicitly in flow using Check out file action
- Do your updates as per your requirements
- Check in the file in flow using Check in file action
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- sonisickCopper ContributorI am a Site Collection Admin. I think my flows run with that permission. Correct me if I'm wrong.
I don't think that is going to help. 99.99% of the documents I process aren't checked out. That seems like a lot of overhead when I'm processing 5000 documents to set properties.
thanks for the suggestion.sonisick If you are SCA and using your connection in power automate flow for all actions, it will run with SCA permissions.
Maybe you can do it conditionally only for checked out files? You can use Send HTTP request to SharePoint action and REST APIs to check if file is checked out. It is checked out, then apply above logic else continue with your regular updates in the flow.
Check:
- How to get the checkout status of a SharePoint file over REST API
- How to determine if a page is checked out? Client side, using JavaScript?
- REST API to get all document where checked out is Yes and checked out by system account
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.