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
gschellhas
New Member

Gateway - Web Data - Will not work for dynamic url

I have a Queryset that will work fine in Power Bi Desktop however when I push to Power Bi Service, i reveive this message: You can't schedule refresh for this dataset because one or more sources currently don't support refresh.

 

I have tried back and forth many times and narrowed it down to adding a formula into the URL:

 

Json.Document(Web.Contents("https://na.myconnectwise.net/v2018_1/apis/3.0/service/tickets?conditions=board/name=""Help Desk"" AND closedDate<[" & Text.Combine(List.Transform(Record.FieldValues(Date.ToRecord(Date.From(DateTime.LocalNow()))), each Text.PadStart(Text.From(_), 2, "0")),"-") & "]"))

 

The full query is here:

let
    Source = Json.Document(Web.Contents("https://na.myconnectwise.net/v2018_1/apis/3.0/service/tickets?conditions=board/name=""Help Desk"" AND closedDate<[" & Text.Combine(List.Transform(Record.FieldValues(Date.ToRecord(Date.From(DateTime.LocalNow()))), each Text.PadStart(Text.From(_), 2, "0")),"-") & "]")),
    #"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"id"}, {"Column1.id"})
in
    #"Expanded Column1"

 

My goal is to dynamically send the date into the request so I receive only back the dates that I want to show data for.  And and all help appriciated.

 

 

 

1 REPLY 1
v-jiascu-msft
Employee
Employee

Hi @gschellhas,

 

Please refer to this blog. It could help. And the Query option of Web.Contents

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Solution Authors
Top Kudoed Authors