I am creating a CRM online plugin using the SharePoint web services. Both of these sites are hosted in Office 365, so I am stuck with SharePoint web services. I am trying to create new asset libraries using an existing template. I am calling AddListFromFeature, which will create the library, but it is not populated with anything from the template. If I go inside SharePoint and create a new library using the template, it works great.

If anyone knows any magic surrounding AddListFromFeature, I would love to hear it.

Anyway, because AddListFromFeature isn't working right, I am trying to manually add content types to the new library I have created. The content types exist already and I just want to associate them with the libraries I am creating. I am experimenting with UpdateListItems, but I'm not getting very far. Is this possible to do with web services?


  • Is your existing template a custom one?
    – user3470
    Dec 28, 2012 at 8:11
  • Yes it is custom. Dec 30, 2012 at 23:57

1 Answer 1


I think you want to use the ApplyContentTypeToList operation. UpdateListItems is used to update individual items in the list, not the list itself.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.