Forum Discussion
sonisick
May 21, 2023Copper Contributor
Is there a way to disable checkin and checkout in document libraries?
Is there a way to prevent check-in and check-out on document libraries that should have that capability? I have just found that my flows can't update attributes if the document is checked out and...
sonisick
May 22, 2023Copper Contributor
I 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.
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.
ganeshsanap
May 22, 2023MVP
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.