SharePoint REST Flow
Tutorial: Using REST in Microsoft Flow

HTTP Rest Thangu SharePoint Microsoft Flow
Microsoft Flow is extremely simple and powerful to do great automation. If something is not possible, some third party actions keep coming up to make them possible. However, you cannot wait for third party and you want to finish your requirement. Is there another option? Yes, we have the option to use REST Url .
Why REST in Flow?
- Though many Custom Actions are available, some of your business need may not available temporarily.
- Example, create a Folder not available directly without a Third Party Tool
How?
Use HTTP Request to SharePoint
Example
To create a new Folder with the Name of the added user
Steps:
- Construct the REST Url
- Give the details in Send an HTTP request to SharePoint
- Add another Action like Email based on your needs
- Run the Flow and test.
REST Url
The REST request type is POST for the requirement to create a new Folder.
Url:
- /_api/web/folders
body:
- {‘__metadata’: { ‘type’: ‘SP.Folder’ }, ‘ServerRelativeUrl’: ‘/sites/dev/Shared Documents/Learning’}
HTTP Request
Give you Site Url and REST method as POST.
Give the REST Url in Uri.
Uri:
- /_api/web/folders
Headers
accept – application/json;odata=verbose
content-type – application/json;odata=verbose
Body:
- {‘__metadata’: { ‘type’: ‘SP.Folder’ }, ‘ServerRelativeUrl’: ‘/sites/dev/Shared Documents/Learning’}
Add the Send to Email Action and update the properties.
To: Created By Email
Subject : Folder Created in your Name
Body:
- Type the following:
- Hi,<br/>
A Folder is created here.
3. Drag and drop Link To Item and type / and then drag and drop Created By Display Name
4. Type the following
Regards,
Admin Team
Sample Mail Content Code:
Run the Flow and test
Run the Flow. Add a new file and check if a new Folder is created in your name.
If you want to learn from my REST development Video Tutorial in SharePoint with a Course and get certified, use this Course here. You will learn much more on REST basics, construction of REST Url, many SharePoint Apps using REST api and Microsoft graph basics.
Comments
Post a Comment