Power Platform
The nBold connector for Power Automate gives you no-code access to all the powerful features of our nBold API, such as managing your teams or start a new team provisioning job, right from:
- Power Platform:
- Azure:
Abstract
This article explains how to register the nBold Connector as a custom connector for Microsoft Power Platform.
Creating the custom connector only requires a few operations that are described hereafter as a detailed step-by-step procedure. Assuming you have all the required access and permissions to execute it properly, it should take less than 10 minutes.
Procedure Overview
Here is an overview of the overall procedure:
1. Create a new app registration in Azure Active Directory
To securely access your Microsoft 365 environment through the Microsoft Graph APIs, the first step is to create a dedicated app registration. An Azure AD app registration identifies a third-party app such as nBold, and defines the permissions you wan to grant to it. To learn more, you can refer to How and why applications are added to Azure AD.
To create a new app registration, follow these steps:
- Open your Azure Active Directory portal
- Select
App registrations
from the left menu - Click
New registration
from the top bar - Give the app a name, such as:
nBold Power Platform Connector
- Select the option
Accounts in this organizational directory only
, as you want to restrict access to your own tenant. - Use this web redirection URL:
https://global.consent.azure-apim.net/redirect
- Click
Register
- From the
Overview
menu, copy theApplication (client) ID
, and keep it as we're gonna reuse it later. - Open the
Authentication
menu - Ensure that the
Access tokens (used for implicit flows)
andID tokens (used for implicit and hybrid flows)
options are checked from theImplicit grant and hybrid flows
section, and save your updates if required. - Open the
Certificates and secrets
menu and clickNew client secret
. A client secret is a kind of a password for your app, so manage it carefully. - Give a name to your client secret such as:
nBold Power Platform Connector client secret
- Select the expiration option, and click
Add
- Copy the
Secret Value
value (be careful, it will only be shown once), and keep it as we're gonna reuse it later.
You should use the Secret Value
, not the Secret ID
!
- Open the
API permissions
from the left menu and clickAdd a permission
from the top bar - Select
Microsoft Graph
, thenDelegated permissions
- From the permissions list, select:
- OpenId permissions >
email
offline_access
openid
profile
- Directory >
Directory.AccessAsUser.All
- Group >
Group.ReadWrite.All
- InformationProtectionPolicy >
InformationProtectionPolicy.Read
- Mail >
Mail.Send
- User >
User.Read
User.Read.All
- OpenId permissions >
- Click
Add permissions
- Then click
Grant admin consent for...
thenYes
You're done, you've created your app registration for the nBold Connector. You should also have saved for later the Application (client) ID
and Client secret
that we're gonna use in the next steps.
2. Import the nBold OpenAPI definition
Now that we've created the app registration, we're gonna use it to create our custom connector.
- To import the nBold API OpenAPI definitions for Power Automate and Power Apps, go to PowerApps or Power Automate.
The custom connector you're about to create will be available for both PowerApps and Power Automate, as they're sharing the same list of connectors.
- In the navigation pane, select
Data
thenCustom connectors
. - Select
New custom connector
then chooseImport an OpenAPI from URL
- Give your connector a name, such as :
nBold
- Paste this URL:
https://assets.nbold.io/api/nbold-powerplatform-openapi-latest.json
- Click
Import
, thenContinue
- Upload the connector logo that you can download from:
https://nbold.co/wp-content/uploads/2020/12/Logo_degrade_blanc.svg
- Set the icon background color to:
#000000
- Click
Security
- Ensure that the authentication type is set to
OAuth 2.0
and the identity provider is set toAzure Active Directory
- Paste the previously copied
Client id
andClient secret
- Ensure that the login url is set to:
https://login.windows.net
- Ensure that the tenant ID is set to:
common
- Set the resource URL to:
https://graph.microsoft.com
- Set the scope to:
https://graph.microsoft.com/.default
- Click
Create connector
, thenClose
3. Update the Power Platform Connector
To update your Power Platform connector:
- Open the updated connector definition from:
https://assets.nbold.io/api/nbold-powerplatform-openapi-latest.json
- Copy the whole content
- From Power Apps or Power Automate, open your custom connector from the
Data \ Custom connectors
menu - Click on
Swagger Editor
- From the left page, replace the content by pasting the updated connector definition
- Click
Update connector
4. Next Steps
Now that you've created the nBold connector, you can use it from Power Apps, Power Automate, and Power BI. See the available Triggers and Actions for reference.
Here are a few interesting articles that may give you some guidelines and new ideas on how to use the nBold Connector:
- Top 5 Power Automate Flow Examples for Microsoft Teams - nBold
- Get started with Power Automate
- Power BI with Microsoft Teams: How to Manage Reports Effectively :::
Update your connector authentication
Issue:
In case your Power Automate flow stops working, one of the possible reasons for that issue can be an expiration of a Power Automate connector authentification.
You can check it by looking at your client secret expiration date in Azure Active Directory.
To check it:
- Go to App registration in your Azure Active Directory portal
- Select your connector
- Click on Certificates & Secrets and check if your client secret has expired.
Solution :
- If it is the case, you need to modify a secret value in the already excising connector in Power Automate, so that it is valid for 24 months.
Actions to do :
- Go to Azure Active Directory portal ==> App registration ==> Select your connector ==> Certificates & Secrets
- Add a new client secret that expires in 24 months
And then re-try the authentification:
- Go to Power Automate
- Click on Data ==> Custom Connectors
- Select your nBold connector
- Click on Edit
- Go to the Security tab, scroll down, and click edit
- Change Client secret with a new secret value from a new client secret that you just created in Azure Active Directory.
- Update a connector
It should be all up and running now 😉