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
- Create an Entra app registration with the Microsoft Graph
Community.ReadWrite.AllandUser.Read.Allapplication permissions, grant admin consent, and create a client secret. Note the application (client) ID and directory (tenant) ID. - In Power Apps, choose Import canvas app, upload
VivaEngageCommunityCreationApp.zip, and select or create an Office 365 Users connection. - Edit the app, remove and re-add the
Viva Engage CC Flowin the Power Automate pane, and enter your values in the flow'sGet Access Tokenaction, which uses this request body:
grant_type=client_credentials
&client_id=CLIENTID
&client_secret=CLIENTSECRET
&scope=https://graph.microsoft.com/.default
- 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