Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jerryfalcobi
New Member

issue with backslash in query

Hi all, If i use relative path in my power query i have some trouble with a backslash. In this case i have a web API like https://thewebsite.com:8800/data? when i use as source https://thewebsite.com/ and as RelativePath=":8800/data?" the query editor adds a backslash between the com and :8800. How can i remove that backslash?
I want refresh the data automatically. Thats why i use the relativepath

1 ACCEPTED SOLUTION
ray_ux
Memorable Member
Memorable Member

Hi @jerryfalcobi 
maybe this help.

https://blog.crossjoin.co.uk/2016/08/16/using-the-relativepath-and-query-options-with-web-contents-i...

let
    searchText = "Power Query"
in
    Web.Contents(
        "https://www.bing.com",
        [
            RelativePath = "search",
            Query = [q = searchText]
        ]
    )

 

View solution in original post

1 REPLY 1
ray_ux
Memorable Member
Memorable Member

Hi @jerryfalcobi 
maybe this help.

https://blog.crossjoin.co.uk/2016/08/16/using-the-relativepath-and-query-options-with-web-contents-i...

let
    searchText = "Power Query"
in
    Web.Contents(
        "https://www.bing.com",
        [
            RelativePath = "search",
            Query = [q = searchText]
        ]
    )

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.