An API Parser defines how to retrieve and parses data from a third-party system. Before you define an API parser, you need to understand what data needs to be pulled from the third-party system and the corresponding API to query the data.

1.Click the icon on the taskbar and select New Parser.

2.In the Device Type list, select a device type that the API parser applies to. By default, the All Device Types option is selected.

3.In the Parser Type list, select API and further select the pre-defined API adapter.

4.Define functions to retrieve integration raw data. In this case, the system pulls Number, Short description, Opened and State from the Incident Table.

Script

5.(Optional) Retrieve other fields from the Incident table, such as Opened by.

1)Open one incident and right-click in the field you want to pull.

2)View the system name and append it after the sysparm_fields in the above script.

6.Click Retrieve and select a device to retrieve data.

7.Define functions to parse integration raw data.

Script

8.Click Parse Result.

9.Save the parser.

 

See also:

Advanced Filter