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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I am trying to loop through multiple rows,
for example each request gives data of 1 agent, PFB
https://vcc-na8.8x8.com/api/stats/agents/{agent-id}/activities?d=2022-12-1&n={offset}
I want to loop through all agent id's at once. i know next steps like creating a duplicate table and custom invoke function etc.
but problem is creating the function out of the above URL,
Currently im trying to do this and it shows error,
Source = Xml.Tables(Web.Contents("https://vcc-na8.8x8.com",
[RelatedPath = "/api/stats/agents/"&(agent_id)&"/"activities?d=2021-12-1&n=1])),
Thanks,
saad.
A few things that seem incorrect:
Also, are you able to do it with a hard-coded value for agent id for to confirm your syntax is correct, before you start passing parameters into it?
[RelativePath = "/api/stats/agents/"&agent_id&"/activities?d=2021-12-1&n=1"])),
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 12 | |
| 10 | |
| 7 | |
| 6 |