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
I am trying to implement a API call as a function in a dataflow. The issue is that the URL is created based on different IDs in a column and for each new ID the data flow asks for credentials. Why can't this be set on a higher level of the URL? Any workarounds?
I fetch the input values from one API to be used in another API call in Business Central.
regards
Johan
Solved! Go to Solution.
I did actually solve it after I knew what to search for.
This is the M-code that did require a authentication validation for each combination in the url (I wanted anonymous):
and this is the solution that prevented it:
In your Data Source Settings, you should have a pull down to choose the root url instead of each detailed one.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
In dataflow there is no option:
It is in Swedish but I guess you get the idea.
I don't do a lot with APIs but this ducumentation looks pretty detailed if you haven't seen it already.
https://docs.microsoft.com/en-us/power-query/handlingauthentication
I'd be surprised if you can't do it at the base level.
| Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
Great documentation! Thank you. I am a bit unsure whether it can help me (see reply above) but it definitely gave me some ideas on how to proceed.
Can you share your Power Query code (hide anything sensitive obviously), it might help get you an answer.
| Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
I did actually solve it after I knew what to search for.
This is the M-code that did require a authentication validation for each combination in the url (I wanted anonymous):
and this is the solution that prevented it:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!