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 Lab02 for the name of the site to create.
    1. The site will be created at https://intranet.contoso.com/Lab02.
  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.

  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 Lab02 for the name of the site to create.
    1. The site will be created at https://contoso.sharepoint.com/Lab02.
  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 – Prepare Code Snippets

This lab contains code snippets that you will use to complete the solution. You can either copy the snippets from the lab script itself or install the code snippets so that you can access them directly from Visual Studio.

  1. Browse to C:\%Office365TrainingKit%\Assets\Code Snippets\CSharp.
  2. Select all the files in this directory and copy them to your clipboard by pressing [Ctrl]+[a] and then [Ctrl]+[c].
  3. Browse to ..\Documents\Visual Studio 2010\Code Snippets\Visual C#\My Code Snippets
  4. Press [Ctrl]+[v] to paste the code snippet files into this directory.
  5. Browse to C:\%Office365TrainingKit%\Assets\Code Snippets\XML.
  6. Select all the files in this directory and copy them to your clipboard by pressing [Ctrl]+[a] and then [Ctrl]+[c].
  7. Browse to ..\Documents\Visual Studio 2010\Code Snippets\XML\My Xml Snippets
  8. Press [Ctrl]+[v] to paste the code snippet files into this directory.
    Note:
    To reduce typing, you can right-click where you want to insert source code, select Insert Snippet, select My Code Snippets and then select the entry matching the current exercise step.

Task 4 – Upload Prerequisite Solution

Note:
You only need to perform this task you haven’t completed Lab 2.2

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.

Note:
Repeat these steps for both your SharePoint Online and on-premises site.
  1. Launch Internet Explorer and navigate to the site you created for this lab, e.g., https://intranet.contoso.com/Lab02 or https://contoso.sharepoint.com/Lab02.
  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\2.3\Source\Before\ListsAndSchemas.wsp and click Open and OK.
    Note:
    Activating the solution will close the dialog automatically.
  7. Click the Activate button on the ribbon to activate the solution.
  8. Browse to the Lab02 site.
  9. Click Site Actions >> Site Settings and choose Manage Site Features.
  10. Activate the ListsAndSchemas Feature1 feature.
  11. The Products list should now be visible in the Quick Launch.