The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello, Can anyone help me figure out why Power Query is moving the clause of my api string to the end?
Example:
I type: Web.Contents("https://api-domain.com/v1/active?licenseNumber=123",[RelativePath="&ID="&[Id]])
It returns and Error Data Path that is: Data Path = https://api-domain.com/v1/active&ID=abc?licenseNumber=123
Solved! Go to Solution.
Please try using the Query term of Web.Contents instead as follows
Web.Contents("https://api-domain.com/v1/active",[RelativePath="&ID="&[Id], Query = [licenseNumber="123"]])
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi @prill2ta ,
Please try the method @mahoneypat provided.
In addition, some documents for reference:
Power BI Relative Path Fix for Web Contents Dataset Refresh Errors In Power BI Service - YouTube.
Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
Please try using the Query term of Web.Contents instead as follows
Web.Contents("https://api-domain.com/v1/active",[RelativePath="&ID="&[Id], Query = [licenseNumber="123"]])
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.