Share via


Exercise 3: Consuming a provider

In exercise 3, you’ll learn how to consume your provider in Outlook and understand all of the ways that the OSC surfaces provider data.

  1. In Visual Studio, press F5 to start debugging your provider
  2. Once Outlook starts, click on the Add-Ins tab on the ribbon.

    Figure 9

    Add-ins ribbon tab

  3. You enabled the Toolbar Commands on the Add-Ins tab when you added keys to the registry in Exercise 1. Specifically, the ShowDebugButtons key shown below:

    [HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\SocialConnector] "DebugProviders"=dword:00000001 "ShowDebugButtons"=dword:00000001

  4. Right-click on the TestProvider contact folder and choose Delete Folder
  5. Click on Synch Contacts. Observe that the OSC recreates the folder and synchronizes with the sample social service to add contacts to the folder.
  6. Click on the Inbox folder
  7. From the ribbon, select ViewPeople PaneNormal to ensure that the People Pane is visible
  8. Select any email item
  9. In the People Pane, observe the Add button underneath the picture frame. This functionality allows you to add the selected contact to one of your social networks if the provider supports this feature. If you have already added the contact to one of your social networks, instead of an Add button, you’ll see the icon of the social network associated with the contact.

    Figure 10

    Social Network Icon

  10. From the ribbon, select Sync Feeds.
  11. Observe that your Social Service console shows the output sent back to your OSC provider.
  12. Click on the News Feed folder in Outlook.
  13. Observe that you have numerous items in the folder.

    Figure 11

    News Feeds

  14. Click on the first item in the list
  15. In the People Pane, click on the 2nd tab (News feed) to view all of the news feed items associated with this person.
  16. Observe that there are no other news feed items associated with this person. Further, Outlook is displaying a message that Search cannot return results for this view. This happens because you ran Visual Studio as administrator and when it launches Outlook to debug your project, it is running Outlook as administrator as well. Outlook uses Windows Desktop Search to surface related data in the People Pane but it is not available when Outlook is running with administrator permissions.

    Figure 12

    Outlook running without administrator permissions

  17. Close Outlook to stop debugging your project
  18. Start Outlook (using the Windows menu – not by debugging your project).
  19. Open the News Feed folder
  20. Click on the first Jan Kotas item
  21. In the People Pane, observe that you can see other items attributed to Jan Kotas.

    Figure 13

    Outlook running with administrator permissions

  22. Disconnect from a Social Provider
    1. From the ribbon, select ViewPeople PaneAccount Settings
    2. Click on the X associated with the TestProvider account to disassociate the TestProvider account with your Outlook account.

      Figure 14

      Social Network Accounts dialog

    3. Click Yes to remove the connection and delete the previously downloaded information.
    4. Observe that the News Feed data is removed along with the TestProvider contacts folder.
  23. Reconnect to the TestProvider
    1. From the ribbon, select ViewPeople PaneAccount Settings
    2. Check the box next to TestProvider
    3. Enter a User Name and Password (doesn’t matter what you enter for the TestProvider)
    4. Click Connect
    5. Click Finish
    6. Click Close
    7. Observe that news feed items appear in the News Feed folder and the TestProvider contact folder reappears.