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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

how to pass dynamic Query Paramters using REST API to JSON as data source

Hi Experts

I'm accessing the REST API URL as a direct query data source through the CData Power BI Connector for REST but the current URL has a hard coded value but how could I pass parameter dynamically in the power bi.

I have created 2 columns in the schema (JSON) which can be used as a parameter- pease see the below

<input name="effectiveDate" required="true"/>
<input name="prodId" required="true"/>

 

and change the URL to http://hotsname/sources/DimSales?rs:effectiveDate=[_input.effectiveDate]&rs:prodId=[_input.prodId]&r...

 

And also created Parameters in the Power BI with the same names (effectiveDate, ProdId) and assigned these to Query dataset in the M Query but got the below error.

 
1 REPLY 1
Icey
Community Support
Community Support

Hi @Anonymous ,

Hope these documents can help you:

Parameters for JSON API data - Maintain Query daily;

Dynamic connection to Web URL.

 

Best Regards,

Icey

 

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

 

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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