Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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?
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
Solved! Go to Solution.
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.
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.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 38 | |
| 31 | |
| 27 | |
| 27 |