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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
MuzammilAK
New Member

Use Query option in Web.Content and pass $filter

Dears,

 

I am trying to pass $filter as query parameter to Web.Contents, so that I can enable scheduled refresh.

 

 

 

url = GetGraphURL(AzureKind)&"/"&TenantName&"/users",
queryParameters = [
        #"api-version" = 1.6,
        #"$filter" = "objectId eq '"&principalId&"'"
        // Add any other query parameters here
    ],
 Source = Json.Document(Web.Contents(url,[Query=queryParameters])),

 

 

 

The above does not work.

 

However, if I pass url without Query option in Web.Content, as shown below, it works.

 

 

 

url = GetGraphURL(AzureKind)&"/"&TenantName&"/users?api-version=1.6&$filter=objectId eq '"&principalId&"'",
 
Source = Json.Document(Web.Contents(url)),

 

 

But this does not support scheduled refreshing.

 

Please advise.

 

Thank you.

 

1 REPLY 1
lbendlin
Super User
Super User

what is the error message? 

 

BTW, for scheduled refresh you will also need to use RelativePath.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors