Don't want to use a template? We get it, you like custom stuffβ¨
Prerequisites β
Steps to Create New Connection
-
Make a note of the tenant and instance you want to connect to, along with your personal Primary Key (you will need these for step 7).
-
Open up Power BI (Desktop)
- Open Power Query (Transform Data, center top toolbar)
-
Create a brand new query. Hit New Source > Web.
- Toggle the Advanced option and delete the second line under URL parts.
- Then click the "Add Header" button twice and fill out the request headers like so (see below screenshot in step 7):
- edison365-tenant
- This distinguishes your tenant from all the others
- edison365-instance
- This distinguishes your instance from any others
- Ocp-Apim-Subscription-Key
- This acts as your authentication to ensure the request is coming from you and only you
- edison365-tenant
- Now that you've got the correct structure in place, it's time to fill it out with your specific request.
-
-
Add your Request Endpoint
- Remember to replace the {endpoint} with the request you are interested in.
- For example: For the request GET Projects, the URL part reads https://my-api.edison365.com/v1/api/odata/RecordReports.
- Remember to replace the {endpoint} with the request you are interested in.
- Fill Out Your Request Header Parameters
-
-
Tenant name
-
Fill out your Instance name
-
Fill out your Primary Key
- Click Show to reveal your key and allow it to be copied/pasted.
-
-
-
Example:
As a concrete example, a reasonable URL for a Support instance for the company Contoso might be: https://my.edison365.com/contoso/support
You can read off the info you need from the URL:
- Tenant name: contoso
- Instance name: support
This results in the request header parameters:
Shortcut
Now that you've done one query from scratch, you can save a bunch of work and duplicate the next ones.
I can't stress enough how much simpler this is if you begin by duplicating an existing query instead of going through this each time; a lot of the initial steps in build a query are identical, so I usually follow this process instead:
-
Duplicate a query
-
In the new query, navigate to the first applied step in the query
-
In the formula bar at the top, amend the API URL (only the highlighted part) so it points at the endpoint I desire
-
Run my query