URL Form Launching

The AssetTrack application can be launched using a custom URL shortcut or URL link placed on the device or hosted internally on a customer webpage.

Formatting for the URL launch format for AssetTrack 4 is as follows:

ami:///<urlencodedJSON>

The "urlencodedJSON" is JSON in the format of:

 

{

"server": "<full api url>",

"form": "<form name>",

"fields": [

{"<field1 label>": "<field1 value>"},

{"<field2 label>": "<field2 value>"}

]

}

 

The fields that can be auto-filled are text, date, number, and pick list values such as state or substate. Reference fields such as location and model are not supported. Auto-filling the fields are not required. The form name is always required. 

The encoder at http://meyerweb.com/eric/tools/dencoder/ works for URL encoding the JSON.

As an example, the following JSON is for the ServiceNow environment "exampletestserver":

 

{"server":"https://exampletestserver.service-now.com/api/x_amiam_assettrack/atapi","form":"Receive","fields":[{"PO Number":"PO1000002"}]}

 

Using the encoder link above, would make the final URL:

ami:///%7B%22server%22%3A%22https%3A%2F%2Fexampletestserver.service-now.com%2Fapi%2Fx_amiam_assettrack%2Fatapi%22%2C%22form%22%3A%22Receive%22%2C%22fields%22%3A%5B%7B%22PO%20Number%22%3A%22PO1000002%22%7D%5D%7D

Have more questions? Submit a request

Comments

Please sign in to leave a comment.