Skip to content Skip to sidebar Skip to footer

Sp.web.getfilebyserverrelativeurl(fileurl) Not Working

I am using SP.Web.getFileByServerRelativeUrl(fileurl) function of sp.js library. My site hierarchy is like this Host Web App1 Web DocumentLibrary1 App2 Web wher App1 Web

Solution 1:

Put /sites//DocumentLibrary1/myfile.xml as getFileByServerRelativeUrl parameter takes

relative url with respect to server url.

for eg: "http:///sites/sitename/list/folder"

give "sites/sitename/list/folder" in server relative url.

Post a Comment for "Sp.web.getfilebyserverrelativeurl(fileurl) Not Working"