Posts

Showing posts from July, 2023

Create a group and teamsite using REST API in Power Automate - CreateGroupEx

Image
For a customer i was creating a project portal. On the project portal we have a list with all projects and when a new item is added to that list a power automate flow creates a new project site in SharePoint.  For some projects the team members might want to create a Team in Microsoft Teams. That's why I choose to create a group using the REST API call CreateGroupEx The site that gets created can easily be Teamified by the PM. Here is the http action in Power Automate. Headers: { "accept": "application/json;odata=verbose" } Body: {    "displayName":"@{triggerOutputs()?['body/Project_x0020_number']}",   "alias":"@{triggerOutputs()?['body/Project_x0020_number']}", "isPublic":false,   "optionalParams":{       "Description":"",     "Owners":["@{triggerOutputs()?['body/Editor/Email']}",""],     "CreationOptions":        [