# Selecting Sharepoint document to send via GetAccept

Explains how you can automate GetAccept sending directly from Sharepoint by the click of a button.

**Date:** April 23, 2026

## How you can automate GetAccept sending directly from Sharepoint by the click of a button

|     |
| --- |
| Many companies have their important documents stored within their Sharepoint/Onedrive for Business account, but want to be able to send important documents directly via GetAccept. This is possible to do with the help of Microsoft Power Automate and we'll show you how in a few steps.<br>- First, you need to setup a Flow, that is triggered by _Select a file in Sharepoint._<br>  <br>- First select _Create flow,_ choose _Instant flow_ and find _For a selected file (Sharepoint/Onedrive for business)._<br>  <br><br>- After you've created the flow you need to connect your Sharepoint site to the trigger:<br>  <br><br>- In this example, we've connected the library called documents, but you can of course choose any library here.<br>  <br>- As you can see, we've also added a few fields that we want the user to fill in to be able to send out documents.<br>  <br>- We've also made some of these fields mandatory (such as recipient email and document title).<br>  <br>- Here you could also add a Yes/No input if you would like to populate a checkbox in a GetAccept template.<br>  <br><br>- The next step is to get the file properties:<br>  <br><br>- Fill out the action in the following manner (if you have a different library name you should exchange Documents to your selected library name):<br>  <br>​<br>  <br><br>- The third step is to get the file content in order to be able to send it with GetAccept.<br>  <br>- Find the action by clicking the plus sign and search for _Get file content:_<br>  <br><br>- Input the file identifier that you collected from the previous step ( _Get file properties_):<br>  <br><br>- All set with fetching the file. Now you need to create and send out the document with GetAccept.<br>  <br>- First, you click the plus sign and search for _GetAccept._<br>  <br>- Scroll down and select the action _Create and send document or template_:<br>  <br><br>- Now we need to populate the sendout with the details from the document and input fields.<br>  <br>- First, select _Document name_ (from the first step), and choose send automatically if you want the document to be sent out automatically.<br>  <br>- If you select no here, the document will be created as a draft in GetAccept:<br>  <br><br>- The next input we need to add to the _Create and send document or template_-action is a bit trickier.<br>  <br>- To be able to add the file content we need to add the following expression:<br>  <br>```<br> base64(outputs('Get_file_content')?['body'])<br>```<br>here:<br><br>- Almost done. Now we just need to add the final input parameters to the document:<br>  <br><br>- The flow is now all setup for implementing in Sharepoint.<br>  <br>- You can trigger the flow from either the top menu or by adding a button in a new column in Sharepoint.<br>  <br>- In this example, we're going to add a button in a column to Send out the document automatically.<br>  <br>- To do this, you log in to Sharepoint, click _Add column_, and select _More_:<br>  <br><br>- Name the column anything you want; in this example, we've named it GetAccept. Select Single line of text.<br>  <br>- Scroll down and under _Formatting_ add the following code.<br>  <br>- Please note that you have to replace _ID OF YOUR FLOW_ with the ID of your created flow:<br>  <br>​<br>  <br>```<br>{ <br>  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", <br>  "elmType": "button", <br>  "customRowAction": { <br>    "action": "executeFlow", <br>    "actionParams": "{\"id\": \"ID OF YOUR FLOW\"}" <br>  }, <br>  "attributes": { <br>    "class": "ms-fontColor-themePrimary ms-fontColor-themeDarker--hover" <br>  }, <br>  "style": { <br>    "border": "none", <br>    "background-color": "transparent", <br>    "cursor": "pointer" <br>  }, <br>  "children": [ <br>    { <br>      "elmType": "span", <br>      "attributes": { <br>        "iconName": "Flow" <br>      }, <br>      "style": { <br>        "padding-right": "6px" <br>      } <br>    }, <br>    { <br>      "elmType": "span", <br>      "txtContent": "Send with GetAccept" <br>    } <br>  ] <br>}<br>```<br>- The ID of your flow is found by going into your flow (or choose details) and copying the part after _flow_ in the address field:<br>  <br><br>- Now you are all set and your Sharepoint environment should look something like this (note the added GetAccept column):<br>  <br><br>- Whenever a user clicks _Send with GetAccept_, the flow is triggered, and the user is asked to enter the details and click _Run flow_ and the document will automatically be sent out to your recipient:<br>  <br><br>- Of course, it is possible to adjust and customize this flow. In our example, we've added an SMS notification (but could be sent in Teams also of course).<br>  <br>- You could also further add script to show the current status of the document sent, disable the send button if the document has been sent, and much more (but these are beyond the scope of this guide).<br>  <br>- You can read more about formatting a button to launch in Sharepoint [here](https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/column-formatting#create-a-button-to-launch-a-flow)
