I am running SPServices’ GetListItems from a subsite (https://something.sharepoint.com/sites/intranet/op1/) querying a document library in the root. This is my SPServices code.
$().SPServices(
{
webUrl : 'https://something.sharepoint.com/sites/intranet/',
operation : "GetListItems",
async : true,
listName : 'Documents',
CAMLViewFields : "<ViewFields><FieldRef Name='Title' /><FieldRef Name='EncodedAbsUrl'/></ViewFields>",
// CAMLQuery : camlQuery,
completefunc : function (xData, Status)
{
console.log('doclib_getListItems [xData]', xData);
console.log('doclib_getListItems [Status]', Status);
}
});
However I am getting an error “POST https://something.sharepoint.com/sites/intranet/op1/_vti_bin/Lists.asmx 500 (Internal Server Error)”. I think it is trying to find the “Documents” list in the subsite but not in the site indicated by the webUrl. Is there a way to force SPServices to query https://something.sharepoint.com/sites/intranet/_vti_bin/Lists.asmx ?
Please note the opt1 in the subsite url.
thanks!
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Web URL
SiteSucker offers several ways to enter URLs in the Web URL text field, such as: You can type an address into the Web...
Read more >WebURL | Documentation - GitHub Pages
WebURL provides support for creating and interpreting URLs according to the latest industry standard. The API is more expressive than Swift's current URL ......
Read more >What is a URL? - Learn web development | MDN
URL stands for Uniform Resource Locator. A URL is nothing more than the address of a given unique resource on the Web. In...
Read more >Announcing WebURL - a new URL type for Swift
WebURL is a brand-new URL library. It is written entirely in Swift, implements the latest URL standard, and has a great API designed...
Read more >webURL - Documentation - Apple Developer
webURL. A link to the Shazam Music catalog page that contains the full information for the song. iOS 15.0+ iPadOS 15.0+ macOS 12.0+...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
this is what happens when one copies code from the internet without double checking. thank you, it was driving me crazy
thanks!