Uri.BuildQueryString is a Power Query M function that assembles a record query into a URI query string, escaping characters as necessary. The function returns a properly formatted and escaped URI query string based on the input record.
Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365
Uri.BuildQueryString( query as record ) as text
Assemble the record
query into a URI query string, escaping characters as necessary.
Encode a query string which contains some special characters.
// Output: "a=1&b=%2B%24" Uri.BuildQueryString( [a = "1", b = "+$"] )
Other functions related to Uri.BuildQueryString are: