Forum Discussion
ercwebdev
6 years agoFrequent Visitor
URL escaping to get PWA subsites
Hi all, I'm struggling with a quirky little problem in Power BI that is causing a big problem. I came across this tutorial (which uses Power M Query) to access many subsites in SharePoint and return...
- 6 years ago
Hi Alan,
Try this code:
let Source = "https://mysitename.sharepoint.com/sites/pwa/project - name", uriPartsRecord = Uri.Parts(Source), result = uriPartsRecord[Scheme] & "://" & uriPartsRecord[Host] & uriPartsRecord[Path] in resultthe result I get is
https://mysitename.sharepoint.com/sites/pwa/project%20%20-%20%20nameDoes it help?
Sergiy
6 years agoResolver II
Hi Alan,
Try this code:
let
Source = "https://mysitename.sharepoint.com/sites/pwa/project - name",
uriPartsRecord = Uri.Parts(Source),
result = uriPartsRecord[Scheme] & "://" & uriPartsRecord[Host] & uriPartsRecord[Path]
in
result
the result I get is
https://mysitename.sharepoint.com/sites/pwa/project%20%20-%20%20name
Does it help?
ercwebdev
6 years agoFrequent Visitor
Hi Sergiy,
Thanks for taking the time to provide a solution for this. It works as expected. But still can't seem to get the solution working to will have to investigate other areas.
Thanks,
Alan