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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
kasife
Helper V
Helper V

Search list in API with dynamic parameter

Hi guys, 

I need some help.

I need to fetch a list of customers through an API. This API fetches specific clients, so I don't know how I could fetch the entire list of clients. The query requests the customer's document number. How could I make it dynamic to bring in all the customers? How could I do it?

 

kasife_0-1670737293300.png

 

My function

 

 

(
    _documento 
)
=>
let
    Fonte = 
        Json.Document(
            Web.Contents(
                "https://cliente.site.com.br/", //Mantém o host da consulta
                [
                    RelativePath = "api/site/cliente", //Altera o RelativePath conforme deseja 
                    Query = 
                    [
                        
                        documento = Number.ToText(_documento)

                    ],       
                    Headers = 
                    [
                        accept = "application/json",
                        email = _email,
                        token = _token
                    ]
                ]
            )
        )
in
    Fonte

 

 

 

invoked function

 

 

let
    Source = fx_cliente(12345678910)
in
    Source

 

 

 

Thanks

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @kasife 

 

Please refer to the following links in the hopes of helping you.

Solved: How to create a custom dynamic list for REST API p... - Microsoft Power BI Community

Solved: REST API With Authentication and Dynamic Variables - Microsoft Power BI Community

 

Best Regards,

Community Support Team _Charlotte

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

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @kasife 

 

Please refer to the following links in the hopes of helping you.

Solved: How to create a custom dynamic list for REST API p... - Microsoft Power BI Community

Solved: REST API With Authentication and Dynamic Variables - Microsoft Power BI Community

 

Best Regards,

Community Support Team _Charlotte

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

@v-zhangti 

 

Many thanks

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.