Question

Now that sandbox solutions are " deprecated " in SharePoint 2013, though we can still develop and use them. What is the best practice of creating site columns,content types and list definitions in a site collection in Office 365 SharePoint 2013. I do not want to create site columns and content types manually through the UI.

Lets say that we are starting with a project and we need a set of site columns, content types, list definitions etc. In a full trust solution ideally we would create modules, list schemas/instances declaratively and deploy it through features.

How is it done in the Office 365 scenario. I know there isnt a hard and fast method of doing it. We can do this through CSOM/still use sandbox solution. However, what would be a good approach.

Was it helpful?

Solution

There was some confusion around the deprecation of sandbox solutions. Essentially, only custom managed code (in sandbox solutions) has been deprecated.

From the (official) SharePoint Dev Blog:

While developing sandboxed solutions that contain only declarative markup and JavaScript -- which we call no-code sandboxed solutions (NCSS) -- is still viable, we have deprecated the use of custom managed code within the sandboxed solution...Given the dynamic nature of online services, we will determine support needs for coded sandboxed solutions in SharePoint Online based on customer demand. NCSSs continue to be supported.

In terms of best practice, that is somewhat debateable though I believe CSOM is winning the battle over declarative sandbox solutions.

Check out this great blog post about it.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top