Skip to content

Latest commit

 

History

History
80 lines (53 loc) · 8.25 KB

use-hat-software-factory-create-hosted-application.md

File metadata and controls

80 lines (53 loc) · 8.25 KB
title description ms.date ms.topic author ms.author search.audienceType ms.custom
Use HAT Software Factory to create hosted application projects | MicrosoftDocs
Learn to install and use the HAT Software Factory to create hosted application projects in Unified Service Desk.
06/27/2024
article
gandhamm
mgandham
customizer
developer
evergreen

Use HAT Software Factory to create a hosted application in Unified Service Desk

The [!INCLUDEpn_hosted_application_toolkit_hat] Software Factory provides you with [!INCLUDEpn_Visual_Studio_short] templates to configure hosted [!INCLUDEpn_ms_Windows_short], web, or [!INCLUDEpn_Java] applications, and make them available to a [!INCLUDEpn_uii_acronym] desktop (such as [!INCLUDEpn_unified_service_desk]). To use the [!INCLUDEpn_hat] Software Factory, you must first install it.

Install HAT Software Factory

  1. Ensure that you have [!INCLUDEpn_Visual_Studio] installed. HAT supports [!INCLUDEpn_Visual_Studio_short] 2015, [!INCLUDEpn_visual_studio_2013], [!INCLUDEpn_Visual_Studio_short] 2012, and [!INCLUDEpn_Visual_Studio_2010_short].

  2. Download and extract the UII SDK package. In the extracted folder, navigate to the UII\Templates folder to locate the HAT software plug-in for [!INCLUDEpn_Visual_Studio_short]: Microsoft.Uii.Tools.Inspector.vsix.

  3. Double-click the Microsoft.Uii.Tools.Inspector.vsix file to install the HAT software plug-in for [!INCLUDEpn_Visual_Studio_short].

Create a HAT hosted application project

Installing the HAT Software Factory creates new project templates in [!INCLUDEpn_Visual_Studio_short] that let you create hosted applications that can use HAT automations.

  1. Start [!INCLUDEpn_Visual_Studio_short], and create a new project.

  2. In the New Project dialog box, from the list of installed templates on the left, expand Visual C#, and select:

    1. UII > External Application: Create a project with basic initialization string (Initstring.xml) file for an external application.

    2. UII > Web Application: Create a project with basic initialization string (Initstring.xml) for a web application.

      In this topic, you’ll create a web application.

    HAT Bing search.

  3. Specify the name and location of the project, and click OK.

  4. You are prompted to enter a URL for your web application. Type the URL, and then click OK.

    Application properties for Bing.

    This creates a web application project with an initialization string (Initstring.xml) that contains information about your web application URL, adapter info, and data bindings. This is basic information, and will get updated as you configure your hosted application with automations and bindings.

  5. Next, configure the application by using one of the following options by right-clicking the project name, and selecting an option from the shortcut menu.

    Use the shortcut menu to configure.

    Option Description
    Inspect Start UII Inspector to inspect the application controls. [!INCLUDEproc_more_information] Using UII inspector to create bindings
    Inspect As Different User Start UII Inspector using different credentials.
    Application Configuration Configure the hosted control application. [!INCLUDEproc_more_information] Configure the HAT application
    Action Configuration Configure an action for the HAT application. [!INCLUDEproc_more_information] Configuring an action for the HAT application
    Deploy Deploy the hosted control application configuration to the Microsoft Dataverse server. [!INCLUDEproc_more_information] Deploy and import an application configuration to or from Dataverse server

    [!NOTE] When using Inspect as a different User for a Windows-based application with different access rights, the UII Inspector may sometimes not inspect the controls. In such cases, ensure that [!INCLUDEpn_Visual_Studio_short] and the target application run with the same privileges and that you use the Inspect option instead of Inspect as a different User. This option isn’t available for web applications.

    While inspecting an application with the Inspect as a different User function, if the application uses the Set Parent method of hosting, the application bindings may have errors. While using the Set Parent method, you must select Use FindWindow in the Alternate Top-Level window section and specify the Caption and Class for the application window.

  6. Save your project, and build it (Build > Build Solution). After the project is built successfully, an assembly (Bing_Search.dll) is generated in the \bin\debug folder of your project folder. This assembly will be used later when deploying the application.

See also

Using UII inspector to create bindings Configure the hosted application Configure an action for the hosted application Deploy the hosted application to Unified Service Desk Import the hosted application from Unified Service Desk

[!INCLUDEfooter-include]