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 |
|
evergreen |
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.
-
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].
-
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
. -
Double-click the
Microsoft.Uii.Tools.Inspector.vsix
file to install the HAT software plug-in for [!INCLUDEpn_Visual_Studio_short].
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.
-
Start [!INCLUDEpn_Visual_Studio_short], and create a new project.
-
In the New Project dialog box, from the list of installed templates on the left, expand Visual C#, and select:
-
UII > External Application: Create a project with basic initialization string (Initstring.xml) file for an external application.
-
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.
-
-
Specify the name and location of the project, and click OK.
-
You are prompted to enter a URL for your web application. Type the URL, and then click OK.
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.
-
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.
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 theSet Parent
method, you must selectUse FindWindow
in theAlternate Top-Level window
section and specify theCaption
andClass
for the application window. -
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.
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]