How To Deploy Sandbox Solutions In SharePoint Online

I am writing this blog about how to deploy sandbox solutions in SharePoint Online. Sandboxed solutions will be hosted in a SharePoint user's code solution worker process (SPUCWorkerProcess.exe) and will run the code that can only disturb or affect the site collection of the solution. Since sandboxed solutions don’t run in the IIS worker process, neither the IIS Application pool nor the IIS Server should restart. If we have the Server farm and there are multiple Site collections deployed, we need to do some changes or develop something for the particular site collection. Earlier we used to deploy Farm Solution, which was affecting the entire farm. Later, the developers found the solution called Sandbox solution, where we can work on particular site collections.

Today, we are deploying solution sandbox on SharePoint Online by the screenshots and steps given below.

  • We need a site collection to deploy a sandbox solution, if you have the site collection login to it or create a new site collection.
  • Once we login to the site collection, click setting (Gear box) on the right side of the screen.
  • Once site setting page is clicked, select site settings option from the dropdown option.

    SharePoint

  • Now, select Solutions option from the Web Designer and Galleries, which are highlighted above.
  • Once solutions options are selected, we will get the solution wizard. Here, the option is called, where upload solutions will be available from the solutions tab.

    SharePoint

  • Now, select the Upload Solutions and we will get Add a document wizard. Here, we need to upload the solutions file.
  • Once uploaded, we need to activate the solutions.

    SharePoint

  • Once it is activated, we will get the page, as shown below.

    Note

    It might be possible that we will get an error option, if sandbox is having any issue or has expired, in which case we need to check the details if the issue is occurring and we need to fix it.

    SharePoint

  • Now, we can add the web part which we have activated recently above.

    To add the web part of the activated solutions, navigate to any part of the site page and edit the page. Click Add a Web Part and select the activated solution Web part page.

    SharePoint

  • Once it is added, we can get an output page, as shown below.

    SharePoint

Thanks.