Setup

Note:
These setup instructions apply to all the labs in this unit; you don’t need to repeat these steps if you already performed them in the first lab in the unit.

Task 1 – Create SharePoint Site

In this task, you will create a sub site for this lab in your SharePoint on-premise site.

  1. Navigate to your top-level SharePoint site, e.g., https://intranet.contoso.com.
  2. From Site Actions, choose New Site.
  3. Choose the Team Site template.
  4. Enter Lab04 for the name of the site to create.
    1. The site will be created at https://intranet.contoso.com/Lab04.
  5. Click Create to create the site.

Task 2 – Create SharePoint Online Site

In this task, you will create a sub site for this lab in your SharePoint Online site. You can skip these steps if you have already performed them as part of the first lab in this unit.

  1. Navigate to your top-level SharePoint Online site, e.g., https://contoso.sharepoint.com.
  2. From Site Actions, choose New Site.
  3. Choose the Team Site template.
  4. Enter Lab04 for the name of the site to create.
    1. The site will be created at https://contoso.sharepoint.com/Lab04.
  5. Click Create to create the site.
    Note:
    You have to be an administrator on your SharePoint Online website to perform the tasks in this lab, e.g., creating and publishing a SharePoint Designer workflow to the SharePoint Online site.

Task 3 – Create Visual Studio Toolbox Snippets

Some code snippets that are used in this lab can’t be formatted as Visual Studio snippets. Instead you will create them as text snippets in the Visual Studio Toolbox.

  1. Open Visual Studio 2010.
  2. Open the Toolbox.
  3. Add a tab called Lab04.
  4. Browse to C:\%Office365TrainingKit%\Assets\Code Snippets.
  5. From Visual Studio, open Demo4_2_1.txt and select all its contents.
  6. Drag the contents into the Lab04 tab.
  7. Rename the item to 4.2.1.
  8. From Visual Studio, open Demo4_2_2.txt and select all its contents.
  9. Drag the contents into the Lab04 tab.
  10. Rename the item to 4.2.2.

Task 4 – Upload Prerequisite Solution

In this task, you will prepare for the lab by uploading a solution that will create the list you need for the rest of the tasks in this lab. You can skip these steps if you have already performed them as part of the first lab in this unit.

  1. Launch Internet Explorer and navigate to your SharePoint 2010 on-premise site.
  2. Click SiteActions >> Site Settings.

  3. Under Galleries, click on the Solutions link to view the site collection’s SolutionGallery.

  4. Click on the Solutions tab in the ribbon to view the Upload Solution button.

  5. Click the Upload Solution button.
  6. Browse to C:\%Office365TrainingKit%\Labs\4.1\Source\After\BillableTime.Setup.wsp and click Open and OK.
  7. In the Solution Gallery – Activate Solution dialog, click the Activate button on the Ribbon to activate the solution.

    Note:
    Activating the solution will close the dialog automatically.

  8. Navigate to the website you created for this session, e.g. https://intranet.contoso.com/Lab04.
  9. Click Site Actions >> Site Settings, and select Manage site features.
  10. Activate the BillableTime.Setup feature.
  11. The Billable Time list should be visible in the Quick Launch.
  12. Open the Billable Time list and check that it has six list items in it.