Power BIv5
Power BI® With the Report tool, Microsoft Power BI® reports can be embedded in your Xpoda forms to build rich reports. Design your reports in the Power BI interface first, then drag the tool from the toolbox onto your form.
Appearance in Toolbox | Appearance in Free Form | Appearance in Responsive Form |
| ![]() | ![]() |
Compatibility
| Free Form | Responsive Form | Mobile |
Properties of the Power BI Report tool
Type (Field Type): Shows the field type of the added form tool. This value cannot be changed.
Name (Field Name): The component's name. It is created automatically but can be changed.
Help Text: Text shown as a description when the mouse is moved over the form tool.
Height: Sets the height of the report component on the form, in px. E.g. 300
Width: Sets the width of the report component on the form, in px. E.g. 300.
From Left / Top: Sets the component's position from the left and top.
The Width and From Left / Top properties apply only to Free Form forms. In responsive use, the component uses the appropriate width and position automatically. |
SQL Query: Five parameters are needed to embed Power BI reports in your forms:
- Application Id
- Report Id
- Workspace Id
- Application Secret
- Tenant Id
You can return these values as constants from your SQL query or read them from the database. Remember that the Application Secret must be stored securely.
You can provide the data in the SQL query field as follows.
select '00000000-0000-0000-0000-000000000000','AppId'
union
select '00000000-0000-0000-0000-000000000000','WorkspaceId'
union
select '00000000-0000-0000-0000-000000000000','ReportId'
union
select '','AppSecret'
union
select '00000000-0000-0000-0000-000000000000','Tenant'
Note that the field names must be AppId, WorkspaceId, ReportId, AppSecret and Tenant .
The order of the data does not matter.
No action is used in the Power BI tool! |
Guide to Finding Power BI Embed IDs and the Application Secret
This document explains step by step where to find the five IDs and the application secret needed to embed Power BI reports in your application.
1. App ID and Tenant ID
AppId, is your application's unique ID in Azure. TenantId is your organisation's (tenant's) unique ID in Azure Active Directory (now Microsoft Entra ID).
- Sign in to the Azure Portal:
- In your browser, go to portal.azure.com .
- Sign in with the Azure account you use to access your Power BI reports.
- Go to Microsoft Entra ID:
- In the left menu, find and click "Microsoft Entra ID" (If you cannot find it, use the search bar.)
- Finding the App ID:
- On the Microsoft Entra ID overview page, in the left menu click "App registrations" .
- Find your application (Xpoda Power BI or the name you gave for the project) in the list and click it.
- On the overview page that opens, copy the value next to "Application (client) ID" . This is your AppId.
In addition to the above,
- On the application screen above, go to the Manage > API Permissions tab to check your application permissions. If there are no permissions on this screen, the required read permissions must be granted.
You can add the required permissions with the steps below.
- Microsoft Entra ID > App registrations > Your application path.
- From the left menu, "API permissions".
- "+ Add a permission" click the button, "Power BI Service"choose it.
- "Application permissions" tab.
- Report.Read.All
- What it does: Gives permission to read all reports in Power BI. Your application needs it to display a report.
- Why it matters: It is the most basic permission for embedding your reports.
- Dataset.Read.All
- What it does: Gives permission to read all datasets in Power BI.
- Why it matters: Reports are usually linked to datasets, and access to basic dataset information may be needed for the report to load correctly.
- Dashboard.Read.All
- What it does: Gives permission to read all dashboards in Power BI.
- Why it matters: You need it if you also plan to embed Power BI dashboards. It is not required for reports only, but is usually added for general access.
- Content.Read.All
- What it does: Gives permission to read all content in Power BI (reports, dashboards, datasets, dataflows, workspaces, etc.).
- Why it matters: This is a broader permission that covers Report.Read.All, Dataset.Read.All and Dashboard.Read.All above. It is usually preferred for read-only access to all Power BI content.
- Tick the permissions above and click "Add permissions" the button.
- MOST IMPORTANT: If "Not Granted" appears next to the permissions you added, be sure to click "Grant admin consent for to give admin consent. Make sure the status of the permissions changes to "Granted" .
- Power BI Service besides Microsoft Graphby choosing User.Read you may need to add this permission depending on your application.
- If, besides Power BI embedding, your application shows users' profile information, changes their personal Power BI settings or interacts with other Microsoft 365 services (Outlook, OneDrive, etc.), User.Read or other Microsoft Graph permissions may be needed.
- Finding the Tenant ID:
- Go back to the main Microsoft Entra ID overview page (use the back button or click "Microsoft Entra ID" again in the left menu).
- On the overview page, "Tenant ID" copy the value next to it. This is your TenantId.
2. App Secret (Application Secret/Value)
App Secret, is the secret key your application uses to authenticate with the Power BI APIs. This value is visible only when created, so copy it carefully.
- Go to Your App Registration in the Azure Portal:
- As in the previous step, sign in to the Azure Portal and Microsoft Entra ID > App registrations > Your application (Xpoda Power BI) path.
- Go to Certificates & secrets:
- From your app registration's left menu, "Certificates & secrets" click it.
- Create a New Client Secret:
The image below shows an active secret. If a secret has expired, it shows as “Expired” in the list. Click the application name shown like that and create a new secret with the steps below. A new secret must also be created for a newly created application.
- "Client secrets" under the tab, "+ New client secret" click the button.
- In the window that opens, enter a description for your secret (e.g. "PowerBI Embed Secret") and choose an expiry (e.g. "24 months").
- "Add" click the button.
- Copy the Secret Value:
- Right after the secret is created, "Value" in the column, copy the value shown in full. This is your AppSecret.
- IMPORTANT: If you do not copy this value now, you cannot see it again after leaving the page and must create a new secret. Paste the copied value into your project's configuration file or another secure place.
3. Workspace ID and Report ID
WorkspaceId, is the ID of the workspace containing your Power BI reports. ReportId is the ID of a specific Power BI report.
- Sign in to the Power BI Service:
- In your browser, go to app.powerbi.com go to it and sign in with your Power BI account.
- Go to Your Workspace:
- In the left menu, find and click "Workspaces" click the option.
- Click the name of the workspace containing your report (for example "Xpoda Demo Reports" or the name you gave for your project) to open it.
- Finding the Workspace ID:
- After opening the workspace, look at the URL in the address bar. It has this format: https://app.powerbi.com/groups/{WorkspaceId}/...
- Copy the part after groups/ up to the next /. This is your WorkspaceId.
- Open Your Report:
- Open the report you want to embed by clicking its name in the workspace's report list.
NOTE: If you have a permission problem viewing the report, check the workspace permissions as below.
Give Your Application (Service Principal) Workspace Permission:
- In the workspace, next to the workspace name, the three-dot menu (...) click it.
- From the options, "Manage workspace access" choose it.
- In the window that opens, "Add people or groups" the button.
- In the search box, type the name of the application you registered in Azure (Xpoda Power BI Web App or the name you gave). Your application should appear as a Service Principal .
- Select your application and give it a role. To only view reports, the "Viewer" role is enough.
- "Add" the button.
- Finding the Report ID:
- After the report opens, look at the URL in the address bar again. It has this format: https://app.powerbi.com/groups/{WorkspaceId}/reports/{ReportId}/ReportSection...
- Copy the part after reports/ up to the next /. This is your ReportId.
For further settings you can refer to Microsoft's documentation.
This document helps you find, step by step, all the credentials needed to integrate your Power BI reports into your application. Make sure you obtain them correctly and add them to your application's configuration files.


