Hi,
I'm trying to write some variables to a SharePoint List but it's throwing up an "__Invalid URL Parameter - The URL provided contains an invalid command or value. Please check the URL again__" error.
At first I thought it may have something to do with the fact that one of the original variables contained table code but I stripped that out and just left the simple string's name, address and email. I can confirm that the user has write permissions to the lists "SavedSearches".
I also added a webURL parameter in, just in case, but it still had the same problem.
Can anyone see what might be causing the issue by looking at the function?
Dan
I'm trying to write some variables to a SharePoint List but it's throwing up an "__Invalid URL Parameter - The URL provided contains an invalid command or value. Please check the URL again__" error.
At first I thought it may have something to do with the fact that one of the original variables contained table code but I stripped that out and just left the simple string's name, address and email. I can confirm that the user has write permissions to the lists "SavedSearches".
I also added a webURL parameter in, just in case, but it still had the same problem.
Can anyone see what might be causing the issue by looking at the function?
function CreateNewItem2(name, address, email) {
$().SPServices({
operation: "UpdateListItems",
async: false,
listName: "SavedSearches",
updates: "<Batch OnError='Continue'>" +
"<Method ID='1' Cmd='Update'>" +
"<Field Name='Title'>" + name + "</Field>" +
"<Field Name='Email'>" + email + "</Field>" +
"<Field Name='Address'>" + address + "</Field>" +
"</Method>" +
"</Batch><Where></Where>",
completefunc: function(xData, Status) {
alert(xData.responseText);
}
});
};
Thanks,Dan