SOLVED

Is it possible to use Office 365 REST API from flow?

Steel Contributor

Hello,

 

I was wondering if you can use the HTTP REST step in Flow to create an Office 365 group? The Office 365 REST method is available but I'm not sure how to incoporate the authentication/bearer token. Is this possible yet in Flow?

 

 

Thanks!

 

Bart

 

8 Replies
best response confirmed by bart vermeersch (Steel Contributor)
Solution
Hi Bart this is not possible at this time.
What about the SharePoint Rest API endpoints?

@bart vermeersch - I am able to update list item value through SharePoint REST API using bearer token authentication. I haven't tried with OOB authentication mechanism.

 

 

Follow below link for generating authentication bearer token -- http://www.ktskumar.com/2017/01/access-sharepoint-online-using-postman/

 

I have configured HTTP as per below screenshot. Hope this might help you.

 

Flow HTTP POST.png

 

 

 

 

@Deleted - It is possible to call SharePoint API from flow.

Bart,

 

You can call a custom API from flow. I have a series of articles discussing Flow integration. (The piece you want is still being written, but I will publish that this week.)

 

 

https://www.schaeflein.net/connecting-the-clouds-overview

 

You can create an Office 365 Group using the Microsoft Graph. See https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/group_post_groups

 

Note that your API will require Group.ReadWrite.All permission, which must be consented by a global administrator.

 

Lastly, I wrote an article that covers the Groups API. The service moves pretty quickly, but most of the concepts still apply.

https://www.schaeflein.net/exploring-the-office-365-groups-api/

Cool, thanks Paul, I will try it out!

 

Do you know by any change if we can detect the creation of an O365 group? Is it possible to use webhooks to detect the creation of the site collection linked to an O365 group?

At the moment, webhooks in SharePoint Online are only available for Lists.

You could use the AAD Diff Query processing to detect new groups.
- https://msdn.microsoft.com/en-us/Library/Azure/Ad/Graph/howto/azure-ad-graph-api-differential-query
- https://azure.microsoft.com/en-us/resources/samples/active-directory-dotnet-graphapi-diffquery/
Bart,

I published the developer-centric part of the series: https://www.schaeflein.net/connecting-the-clouds-developer/
1 best response

Accepted Solutions
best response confirmed by bart vermeersch (Steel Contributor)
Solution
Hi Bart this is not possible at this time.

View solution in original post