Walkthrough 1: Build a simple agent application for Unified Interface apps

This walkthrough demonstrates how to set up a basic agent application from scratch using Unified Service Desk that can connect to Microsoft Dataverse. This agent application provides you with an empty desktop without any functionality, and you can use it when you go through the rest of the walkthroughs in this section. In this walkthrough, you’ll use the Unified Service Desk configuration to filter out existing controls in the "New Environment" sample application package from appearing in your agent application.

Prerequisites

In this walkthrough

Step 1: Create the basic hosted controls

Step 2: Add the hosted controls to a configuration

Step 3: Assign users to the configuration

Step 4: Test the application

Conclusion

Step 1: Create the basic hosted controls

Create the following three types of hosted control so that the application can connect to an instance of Dataverse: Connection Manager, Global Manager, and Panel Type.

  1. Sign in to Unified Service Desk Administrator.

  2. Select Hosted Controls under Basic Settings.

  3. Select + New.

  4. On the New Hosted Control page, specify the following values:

    Field Value
    Name Contoso Connection Manager
    Sort Order 1
    Unified Service Desk Component Type Connection Manager
  5. Select Save.

  6. Repeat Step 4 and 5 to create another hosted control with the following values:

    Field Value
    Name Contoso Global Manager
    Sort Order 2
    Unified Service Desk Component Type Global Manager
  7. Select Save.

  8. Repeat Step 4 and 5 to create another hosted control with the following values:

    Field Value
    Name Contoso Main Panel Layout
    Unified Service Desk Component Type Panel Layout
    Panel Type Standard Main Panel
    Application is Dynamic No
    User Can Close Unchecked
  9. Select Save.

Important

If you don’t create a Panel Layout type of hosted control in your agent application, the default panel layout, Standard Main Panel, is created automatically when you run the client application.

Step 2: Add the hosted controls to a configuration

A configuration in Unified Service Desk helps you filter access to components that are displayed in the agent application to a user. In this step, create a configuration, and then add the hosted controls created earlier to the configuration.

  1. Sign in to Unified Service Desk Administrator.

  2. Select Configuration under Advanced Settings.

  3. Select + New.

  4. On the New Configuration page, type Contoso Configuration as the name of the configuration, and select Save.

  5. After the new configuration is saved, select the Hosted Controls, Events and Action Calls tab.

  6. Select the ellipsis (...) under Hosted Controls and select Add Existing Hosted Control. The Lookup Records pane is displayed.

  7. Type Contoso in the search bar, and select the search icon. The three hosted controls that you created earlier are displayed in the search results. Select the records and then select Add.

    Add the hosted controls to the configuration.

    The hosted controls are added to the configuration.

  8. Select Save.

Step 3: Assign users to the configuration

In this step, assign users to the configuration so that when they sign in using the Unified Service Desk client application, they can only access the three hosted controls that are added to this configuration. For this walkthrough, assign only a single user to the configuration who will be testing the application at the end of the walkthrough.

  1. Select the General tab of the Contoso Configuration, and then select ellipsis (...) in the Users section.

  2. Select Add Existing User. The Lookup Records pane is displayed.

  3. Type the name of the user in the search bar, and then select Add.

  4. Select Save.

    User added to the configuration.

Step 4: Test the application

Start the Unified Service Desk client application, and sign in to the Dynamics 365 instance where you configured Unified Service Desk using the same user credentials that you assigned to the Contoso Configuration in the previous step. More information: Connect to a model-driven app instance using the Unified Service Desk client.

Your agent application will look like the following:

Basic agent application without any controls.

The desktop in the agent application is empty because no other controls were added to Contoso Configuration apart from the hosted controls required for setting up a basic agent application. In the rest of the walkthroughs, you’ll see controls appear in the agent application as you progressively configure and add controls to Contoso Configuration.

Conclusion

In this walkthrough, you saw how to quickly build a basic agent application that can connect to an instance of Dataverse. You also learned how to filter access to Unified Service Desk controls using configuration.

See also

Support for Unified Interface Apps in Unified Service Desk

Unified Interface Page (Hosted Control)

Unified Service Desk and Unified Interface Configuration Walkthroughs

Walkthrough 2: Display an external webpage in your agent application

Walkthrough 3: Display Unified Interface apps records in your agent application

Walkthrough 4: Display a Unified Interface apps record in a session in your agent application

Walkthrough 5: Display enhanced session information by displaying session name and overview data

Walkthrough 6: Configure the Debugger hosted control in your agent application

Walkthrough 7: Configure agent scripting in your agent application