Forum Discussion
lumi
8 years agoFrequent Visitor
RelativePath for Servicenow adding an extra '/' in URL
Hi all, Could you please give me an idea regarding below issue? I'm getting data from servicenow API using functions. In order to make it possible online refresh schedule - the RelativePath...
nglenn1
4 years agoRegular Visitor
I didn't see a clear answer to this and after probably a dozen different tries having this same issue it is somehow happy with moving my relative path further back into the url than where I had it, right up to the moment I needed to pass the parameter
THIS:
Source = Xml.Tables(Web.Contents("https://xxxx.xxxx.com/sites/xxx/_api/web/Lists/",
[RelativePath ="getbytitle('Contractor%20Relationship%20Manager')/items("&IDS&")/versions"]))INSTEAD OF THIS:
Source = Xml.Tables(Web.Contents("https://xxxx.xxxx.com/sites/xxx/_api/web/Lists/getbytitle('Contractor%20Relationship%20Manager')/items(",[RelativePath = IDS & ")/versions"]))Where my function is:
(IDS as text)=>