Forum Discussion
Is it possible to use Office 365 REST API from flow?
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
- DeletedOct 14, 2016Hi Bart this is not possible at this time.
- DeletedHi Bart this is not possible at this time.
- DeletedWhat about the SharePoint Rest API endpoints?
- Srinivas NarulaBrass Contributor
Deleted - It is possible to call SharePoint API from flow.
- Srinivas NarulaBrass Contributor
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.
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/
- bart_vermeerschSteel Contributor
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?
- Bart,
I published the developer-centric part of the series: https://www.schaeflein.net/connecting-the-clouds-developer/