Skip to content

Commit 91ffc29

Browse files
Merge pull request SharePoint#8730 from andrewconnell/issue8016
♻️ fixup markdown, fixup link
2 parents e2c0d5f + 96eef29 commit 91ffc29

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/business-apps/power-automate/guidance/working-with-send-sp-http-request.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Working with the SharePoint Send HTTP Request flow action in Power Automate
33
description: In Power Automate, the SharePoint Send HTTP Request flow action lets you construct and execute SharePoint REST API queries.
4-
ms.date: 06/28/2022
4+
ms.date: 01/27/2023
55
search.app:
66
- Flow
77
search.appverid: met150
88
---
9-
109
# Working with the SharePoint Send HTTP Request flow action in Power Automate
10+
1111
In Power Automate, the SharePoint Send HTTP Request flow action lets you construct and execute SharePoint REST API queries. This action is particularly useful in cases where the existing SharePoint flow actions do not handle your requirements, or the action you are looking for is not yet available in the SharePoint connector.
1212

1313
![Send an HTTP Request to SharePoint action](../../../images/flow-send-http-request-to-sp-action.png)
@@ -18,12 +18,14 @@ To work effectively with the SharePoint Send HTTP Request action, see the follow
1818
> This is a developer-focused action. You must understand how SharePoint REST API works and also how to parse JSON strings in Power Automate.
1919
2020
## Get to know the SharePoint REST/OData APIs
21+
2122
SharePoint has many APIs. The focus here is the REST/OData APIs. For the complete set of REST/OData APIs, see [Get to know the SharePoint REST service](/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service#bk_learnmore).
2223

2324
Although, in some cases, you can use the SharePoint 2010 REST APIs *(_vti_bin/listdata.svc)*, we recommend using REST/OData APIs instead.
2425

2526
## Use JSON light
26-
SharePoint REST/OData APIs support [JSON light](https://www.microsoft.com/microsoft-365/blog/2014/08/13/json-light-support-rest-sharepoint-api-released/). This means that you can set headers in your API request that inform SharePoint whether to include any metadata in the response. In many cases, you do not require the metadata. Metadata makes things simpler to parse the output of the action.
27+
28+
SharePoint REST/OData APIs support [JSON light](https://www.microsoft.com/en-us/microsoft-365/blog/2014/08/13/json-light-support-rest-sharepoint-api-released/). This means that you can set headers in your API request that inform SharePoint whether to include any metadata in the response. In many cases, you do not require the metadata. Metadata makes things simpler to parse the output of the action.
2729

2830
To do this, just add the following header:
2931

@@ -32,6 +34,7 @@ Accept: application/json; odata=nometadata
3234
```
3335

3436
## Parse the response
37+
3538
If you execute a GET request, you generally want to parse the response. The default response is JSON, making execution simpler.
3639

3740
Parse the response by querying the body of the action, and then parsing through the JSON array or object depending on your response.

0 commit comments

Comments
 (0)