Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I would like all my Lists, MMS's, WebParts, External Content types to be deployed to SharePoint without any need to insert anything manual.

I figured out how to make lists but i can not find any way to deploy a MMS to a SharePoint site. Also deploying the WSP files of the webparts is failing...

After i deployed all this i also need to set permissions to the deployed Content Type. Anybody got any example of above problems?

share|improve this question
add comment

3 Answers 3

Ben Robb has an article on Manipulating the Terms Store through Powershell as one way of automating the deployment of MMS data.

Can you give us more information on what is failing with the webparts - using a WSP is the recommended way of deploying the other SharePoint artefacts.

share|improve this answer
    
I just managed to deploy wsp files using PS. So ill check ur link about the terms store. Thanks alot! –  Frederik Prijck May 26 '10 at 13:43
add comment

Microsoft provide a sample on how to manipulate the ACLs of MetaDataObjects (Including Entities) in the BCS.

Code Snippet: Add an Access Control Entry to a MetadataObject Using the Administration Object Model

share|improve this answer
add comment

I recently wrote some code that had to work with the term store programmatically:

http://charliedigital.com/2010/10/27/updating-sharepoint-taxonomy-fields/

Some more info here:

http://www.sharepoint4developers.net/en-nz/post/setting-taxonomy-field-values.aspx

Basically, you need to reference the Microsoft.SharePoint.Taxonomy DLL and you should have access to all of the classes and services in there. This should allow you to build up your term store programmatically.

I'd recommend doing it with an input structure like an XML file or something so that it's not entirely hardcoded...

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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