Quantcast
Viewing all articles
Browse latest Browse all 31068

Can't refresh OData feed because of dynamics url

I have run into trouble getting my data to refresh online outside of Power Bi Desktop. The offending query retrieves a table of all logins made during the past 2 months up to a max of 100000.

 

When I try to schedule refresh the following Data source:

 

Source = OData.Feed("https://xxxx.api.crm4.dynamics.com/XRMServices/2011/OrganizationData.svc/AuditSet?$select=UserId,ObjectId,Action,Operation,CreatedOn&$filter=(Operation/Value eq 1) and (CreatedOn ge datetime'" & DateTime.ToText(Date.AddMonths(DateTime.LocalNow(),-2), "yyyy-MM-dd") & "')&$top=100000")

 

I get the error:

"You can't schedule refresh for this dataset because one or more sources currently don't support refresh."

 

When I remove  and (CreatedOn ge datetime'" & DateTime.ToText(Date.AddMonths(DateTime.LocalNow(),-2), "yyyy-MM-dd") & "')

 

modifing the URL to:

Source = OData.Feed("https://xxxx.api.crm4.dynamics.com/XRMServices/2011/OrganizationData.svc/AuditSet?$select=UserId,ObjectId,Action,Operation,CreatedOn&$filter=(Operation/Value eq 1)&$top=100000")

The error dissapears.

 

It looks like the dynamic part of my URL doesn't work online. Will this be made possible in the future? Or is there a work arround?


Viewing all articles
Browse latest Browse all 31068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>