Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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": []
}
"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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.