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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 7 | |
| 6 |