Hi Guys,
Im trying to create a report that brings in the latest UPS tracking information from a list of tracking numbers.
My initial thought is to use Web.Contents and modify the string to include the tranking number from another column in the table and then use html.table to parse the site table, similar to the following
Table.AddColumn(#"Removed Duplicates", "Custom", each Web.BrowserContents("https://www.ups.com/track?loc=null&tracknum="&[insert tracking number column here]&"&requester=WT/trackdetails"))
All seemed to work until i loaded he data to PBI service were i was greeted with the following error mesage when i tried to do a scheduled refresh,
You can't schedule refresh for this dataset because the following data sources currently don't support refresh:
Read around a bit and found that relative path function maybe the solution. Heres what i have up til now
=Table.AddColumn(#"Removed Duplicates", "Custom", each Web.BrowserContents("https://www.ups.com",
[RelativePath="/track?loc=null&tracknum="&[insert tracking number column here]&"&requester=WT/trackdetails"]))
but it gives me an error,
DataSource.Error: Web.BrowserContents: This function doesn't support the query option 'RelativePath' with value '"/track?loc=null&tracknum=1Z5685470197406940&requester=WT/trackdetails"'.
Details:
/track?loc=null&tracknum=1Z5685470197406940&requester=WT/trackdetails
Any ideas on what i may be doing wrong?