Example of AddListFromFeature

Oct 18, 2014 at 1:09 AM
Edited Oct 18, 2014 at 1:15 AM
Does anyone have a working example of AddListFromFeature? I've tried a number of things and I can't seem to get it to work. It always results in a generic list based on the templateID. Here's my code:
$().SPServices({
    operation: "AddListFromFeature",
    async: true,
    listName: "MyTestList",
    description: "My test list from a feature",
    featureID: "00bfea71-de22-43b2-a848-c05709900100",
    templateID: "100",
    completefunc: function(xData, status) {
        if (console) console.log('return xml: '+(new XMLSerializer()).serializeToString(xData.responseXML));
    }
});