Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
skaiser
New Member

Use web API as data source for Power Bi

I am trying to use financial information like General Ledger Details from the Sage Intacct API (Oauth) as a data source in Power BI. I've seen reccomendations to use a Power Automate custom connector which I am able to get to function and connect to https://api.intacct.com/ia/xml/xmlgw.phtml and recieve the same results I see in postman. 

 

My question is now that I have a custom connector in Power Automate how do I use Visual Studio to get the swagger file from the custom connector into a .mez to use in Power BI as a data source? Or is there maybe a better way to accomplish this?

 

here is the swagger file from the power automate custom connector with credentions as ******:

 

{
"swagger": "2.0",
"info": {
"title": "IntacctBlank",
"description": "blank",
"version": "1.0"
},
"host": "api.intacct.com",
"basePath": "/",
"schemes": [
"https"
],
"consumes": [],
"produces": [],
"paths": {
"/ia/xml/xmlgw.phtml": {
"post": {
"responses": {
"default": {
"description": "default",
"schema": {}
}
},
"summary": "GL",
"operationId": "GLDetail",
"parameters": [
{
"name": "Content-Type",
"in": "header",
"required": false,
"type": "string",
"default": "application/xml"
},
{
"name": "body",
"in": "body",
"required": false,
"schema": {
"type": "string",
"title": "detail",
"default": "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <request> <control> <senderid>*******</senderid> <password>*******</password> <controlid></controlid> <uniqueid>false</uniqueid> <dtdversion>3.0</dtdversion> <includewhitespace>false</includewhitespace> </control> <operation> <authentication> <login> <userid>skaiser</userid> <companyid>******</companyid> <password>******</password> </login> </authentication> <content> <function controlid=\"{{$guid}}\"> <query> <object>GLDETAIL</object> <select> <field>RECORDNO</field> <field>MODULEKEY</field> </select> <filter> <equalto> <field>MODULEKEY</field> <value>11.CM</value> </equalto> </filter> </query> </function> </content> </operation> </request>"
}
}
],
"description": "test"
}
}
},
"definitions": {},
"parameters": {},
"responses": {},
"securityDefinitions": {},
"security": [],
"tags": []
}

1 REPLY 1
lbendlin
Super User
Super User

"I've seen reccomendations to use a Power Automate custom connector"

 

That is unfortunate.  Power BI custom connectors are written in M, not in Swagger. You'll have to start over.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.