Hi i'm trying to create a sharepoint list with SPServices and I've got the create part working.
next i need to add new columns either during the creation or after. However I cant get the add new fileds to work.
var fieldsNew = "<Fields><Method ID='1'><Field Type='Text' List='{7B4575c08a-0a82-4ed6-a367-102fa380aedf}' ShowField='ID' DisplayName='MatchedEquipmentRecord'></Field></Method></Fields>";
$().SPServices({
operation: "UpdateList",
listName: "myfirstList",
listProperties:"",
updateFields: "",
newFields: fieldsNew,
deleteFields: "",
listVersion: "",
async: false,
completefunc: function (xData, Status){
alert(xData.status);
alert(xData.responseText);
}
});
i'm getting a 200 code back from the alert(xData.status); which as far as i'm awere is a sucssess code but when i look at the list it is not there.
I fixed it now works fine