Skip to main content

Object Url Commands

This application adds custom commands to the Object page. The commands can execute any command-line utility on user's computer, such as a remote desktop tool connecting to other computer represented by the selected object, a remote installation tool, etc.

Configuration

  1. Register an application that you wish to execute from Alvao to a URI scheme.

    For example, to enable Alvao to access a remote desktop via RDP, unpack the ObjectUrlCommandsRdp.zip into the C:\ObjectUrlCommandsRdp folder. Then run the rdp.reg file.

  2. Go to Administration - Settings - Advanced and use the New setting command to create the AM.ObjectUrlDefinitions setting. As a setting value use this sample json:

    {
    "":[
    {
    "name": "Open RDP connection", // command display name
    "url": "rdp://[$NodeCust.Hostname$]", // Browser will navigate to this url when the command is executed.
    "onAllComputerTypes": true, // Enable this command for all computer object types.
    "onObjectTypes": [ // Enable this command for these object types.
    "Computer/laptop",
    "Computer/desktop"
    ],
    "position": 1, // position of the command in command menu: 1=top level left, 2=top level right, 3=extension menu top, 4=extension menu bottom
    "icon": "accessibility_20_regular"
    },
    ]
    }

    The sample adds the Open RDP connection command to the Objects page, enabling the user to access the selected computer's desktop via RDP.

    In the url item use the protocol name previously registered in Windows. Following the protocol use any static text or variables representing property values of the selected object. Replace the Hostname with database column name of a property, see Administration - Asset Management - Property definitions - Column column value in the table.

    The position and icon items accept the same values as IEntityCommand.Show method parameters.

  3. In AdministrationApplications, enable it with the Enable command.

Using application

Members of the Asset Management administrators and Asset managers user groups can view and execute the defined custom commands on the Object page.