cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
bdc604
Level 8

Flow HTTP Request to SharePoint to invite external guest user

I've been playing with HTTP Request to SharePoint, trying to invite an external guest user to the site through Flow.

 

I can successfully generate a bearer token, am assuming I need it for the function shown below, but thats as far as I get.

 

Is this functionality possible? If so, does anyone spot any mistakes?

 

http request1.PNG

 

Reference:

https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/invitation_post

 

4 REPLIES 4
Community Support Team
Community Support Team

Re: Flow HTTP Request to SharePoint to invite external guest user

Hi @bdc604,

 

Do you want to access SharePoint service using "Send an HTTP request to SharePoint" action of SharePoint connector within your flow?

 

If you want to access SharePoint service using "Send an HTTP request to SharePoint" action of SharePoint connector within your flow, I think there is something wrong with your flow that you provided.

 

The "Send an HTTP request to SharePoint" action of SharePoint connector is used to Construct a SharePoint REST API to invoke. It is not necessary to provided a Access Token within the "Send an HTTP request to SharePoint" action.

 

In addition, there is something wrong with the URL that you provided within the Uri field of the "Send an HTTP request to SharePoint" action. The Standard Uri format as below:

 

 _api/web/lists/getbytitle('Documents')

More details about the "Send an HTTP request to SharePoint" action, please check the following article:

https://veenstra.me.uk/2018/05/02/microsoft-flow-create-a-new-sub-site-using-microsoft-flow/

 

On your side, you should change the "Send an HTTP request to SharePoint" action into a "HTTP" action (Remove the "Send an HTTP request to SharePoint" action, add a "HTTP" action), then use the "HTTP" action to access your SharePoint service based on the Access Token. 

 

More details about accessing SharePoint service with "HTTP" action in Microsoft Flow, please check the following blogs:

http://sharepointscribblings.blogspot.com/2017/07/call-any-sharepoint-rest-api-from.html

 

https://sergeluca.wordpress.com/2017/09/22/extend-microsoft-flow-with-the-microsoft-graph-and-0-code...

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
bdc604
Level 8

Re: Flow HTTP Request to SharePoint to invite external guest user

Adding guests to an Office 365 Group via the Microsoft Graph API

https://www.eliostruyf.com/adding-guests-to-an-office-365-group-via-the-microsoft-graph-api/
bdc604
Level 8

Re: Flow HTTP Request to SharePoint to invite external guest user

Adding a guest user to an Office 365 SharePoint site with JavaScript and Azure Functions

https://medium.com/southworks/adding-a-guest-to-an-office-365-sharepoint-site-with-javascript-fa7604...
bdc604
Level 8

Re: Flow HTTP Request to SharePoint to invite external guest user

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 389 members 4,942 guests
Please welcome our newest community members: