Forum Discussion
Scheduled Refresh with Web Source Not Working
- Anonymous7 years ago
I managed to resolve the issue with the scheduled refresh by the method on this blog.
I also have a similar issue and to solve it i did below as per the post by Anonymous
I have a API URL which works like this :
https://jira.company.com/rest/api/2/issue/RC-2345/worklog
to get the data from JIRA , the param is "RC-2345" in this url , rest is static , how can we create a similar funtion to pass the JIRAID as param , https://jira.company.com/rest/api/2/issue/JIRAID/worklog
i tried the below sample function but it doesnt pass it correctly.
let WorkLog = (JIRAID as text) =>
let Source = Json.Document(Web.Contents("https://jira.company.com/rest/api/2/issue", [Query=[JIRAID]], [RelativePath="worklog/"]))
in Source
in WorkLogbut i get the error as
An error occurred in the ‘CalcWorkLog’ query. Expression.Error: 3 arguments were passed to function which expects between 1 and 2.
Details:
Pattern=
Arguments=[List]
Was able to fix the error by the approach below but the sync issue still exists for data refresh:
let WorkLog = (JIRAID as text) =>
let Source = Json.Document(Web.Contents("https://jira.company.com/rest/api/2/issue/" & ""&JIRAID&"", [RelativePath="worklog/"]))
in Source
in WorkLogCreated a param as shown on this url http://prntscr.com/pm3wod with a default value.
Error on Data Set sync is as below
You can't schedule refresh for this dataset because the following data sources currently don't support refresh: Data source for "JIRA Sub Task WorkLog" Data source for "JIRA Main Task WorkLog" Discover Data Sources Query contains unsupported function. Function name: Web.Contents