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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Transform results from openapi.document response

Hi Team,

 

I am trying to build a data connector using openApi via swagger document, which beautifully lists the apis as functions with parameters. Below is the code:

 

 

// Pull the latest swagger definition from the site 
        swagger = Extension.Contents("swagger.json"),
        // OpenApi.Document will return a navigation table
        nav = OpenApi.Document(swagger, DefaultOptions)

Now, biggest challenge, when i click on each api as function and invoke with parameters, i get raw response back.

Befor even i get the response from the invoked api function, i need to apply some transformations upon the response. 

 

How to achieve this, any idea? please suggest!

 

Thanks in advance!

 

3 REPLIES 3
Anonymous
Not applicable

@dax @ImkeF 

Any suggestions on this topic would be much appreciated!

 

Thanks

dax
Community Support
Community Support

Hi Nagpraveen,

If the transformation are the same, I think you could invoke  api function directly, but if the transformation is not same, I think it is hard to apply this dynamiclly.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@dax  Didnt help, there must be some other way!

Thanks!

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.