{"id":117,"date":"2024-09-06T13:09:11","date_gmt":"2024-09-06T20:09:11","guid":{"rendered":"https:\/\/gilosoftblogcom.wordpress.com\/?p=117"},"modified":"2024-09-24T17:52:28","modified_gmt":"2024-09-24T17:52:28","slug":"checking-out-a-document-in-sharepoint-via-power-automate","status":"publish","type":"post","link":"https:\/\/blog.gilosoft.com\/index.php\/2024\/09\/06\/checking-out-a-document-in-sharepoint-via-power-automate\/","title":{"rendered":"Checking Out a Document in SharePoint via Power Automate"},"content":{"rendered":"\n<p>SharePoint is a powerful collaboration tool that allows teams to share and manage content seamlessly. However, automating repetitive tasks can enhance productivity even further. One such task is checking out documents.<\/p>\n\n\n\n<p>This blog will guide you through automating the document checkout process in SharePoint using Power Automate and a &#8220;Send HTTP Request to SharePoint&#8221; action.<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Create a New Flow in Power Automate<br>Navigate to Power Automate and create a new instant cloud flow with a manual trigger.<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Create two Compose actions to hold your site address and server-relative URL of the document you want to checkout.<\/p>\n\n\n\n<p><strong>Step 3:<\/strong> Initialize the Checkout Process<br>Add a new &#8220;Send an HTTP request to SharePoint&#8221; action<br>Configure the action with the following details:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSite Address: Output from Compose action\n\nMethod: POST\n\nUri: _api\/web\/GetFileByServerRelativeUrl('Output from Second Compose Action')\/CheckOut\n\nHeaders: \n{\n  &quot;Accept&quot;: &quot;application\/json;odata=verbose&quot;,\n  &quot;Content-Type&quot;: &quot;application\/json;odata=verbose&quot;\n}\n<\/pre><\/div>\n\n\n<p>View the below flow to see how your flow should look:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gilosoft.com\/wp-content\/uploads\/2024\/07\/Screenshot-2024-07-07-at-4.50.38%E2%80%AFPM.png\" alt=\"\" class=\"wp-image-2176\"\/><\/figure>\n\n\n\n<p><strong>Step 4: <\/strong>Final Steps and Testing<br>Save the flow and test it by uploading or modifying a file in the specified SharePoint folder. Check the document in SharePoint to confirm it is checked out.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SharePoint is a powerful collaboration tool that allows teams to share and manage content seamlessly. However, automating repetitive tasks can enhance productivity even further. One such task is checking out documents. This blog will guide you through automating the document checkout process in SharePoint using Power Automate and a &#8220;Send HTTP Request to SharePoint&#8221; action. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":118,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-117","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-power-automate-text-functions"],"_links":{"self":[{"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/posts\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/comments?post=117"}],"version-history":[{"count":1,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/posts\/117\/revisions"}],"predecessor-version":[{"id":162,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/posts\/117\/revisions\/162"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/media\/118"}],"wp:attachment":[{"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/media?parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/categories?post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/tags?post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}