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?
Reference:
https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/invitation_post
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
Best regards,
Kris
The token is good, uri and request might be good, what else?
https://graph.microsoft.com/beta/invitations
https://graph.microsoft.com/v1.0/invitations
https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/invitation_post
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
39 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
57 | |
22 | |
12 | |
11 | |
10 |