Scripts · Power Apps Preview

Viva Engage Community Creation App

Sample Power App and Power Automate flow that create Viva Engage communities by calling the Microsoft Graph community creation API.

View on GitHub

Preview: this resource is still maturing. Validate it in a non-production environment before relying on it.

What it is

An importable Power Apps solution (VivaEngageCommunityCreationApp.zip) containing a canvas app and a Power Automate flow. The app collects a community name, description, and privacy setting, and the flow gets a Microsoft Graph token with an Entra app registration and creates the community through the community creation API, with the signed-in user as owner. It is a sample and not intended for production use.

Why use it

  • See an end-to-end example of the Viva Engage community creation API behind a Power App front end.
  • Start from a working app and flow and adapt them to your own community creation process.

How to use it

  1. Create an Entra app registration with the Microsoft Graph Community.ReadWrite.All and User.Read.All application permissions, grant admin consent, and create a client secret. Note the application (client) ID and directory (tenant) ID.
  2. In Power Apps, choose Import canvas app, upload VivaEngageCommunityCreationApp.zip, and select or create an Office 365 Users connection.
  3. Edit the app, remove and re-add the Viva Engage CC Flow in the Power Automate pane, and enter your values in the flow's Get Access Token action, which uses this request body:
grant_type=client_credentials
&client_id=CLIENTID
&client_secret=CLIENTSECRET
&scope=https://graph.microsoft.com/.default
  1. Turn the flow on in Power Automate, then save and publish the app. The full steps are in AppImportInstructions.docx.

Prerequisites

  • Microsoft Viva Engage
  • Power Apps and Power Automate environment where you can import a solution
  • Microsoft Entra app registration with Community.ReadWrite.All and User.Read.All application permissions and a client secret
  • Office 365 Users connection