El siguiente ejemplo muestra como poblar el archivo de configuración para poder realizar la integración entre ASMS y ServiceNow. Inicie con un archivo de configuración totalmente limpio como se muestra a continuación:
{
"workOrder": [
{
"table": "",
"reference": "",
"dataSource": "",
"definition": {
"note": {
"type": "",
"key": ""
},
"subject": {
"type": "",
"key": ""
},
"description": {
"type": "",
"key": ""
},
"service": {
"type": "",
"searchBy": "",
"key": "",
"defaultValue": {
"id": 0,
"value": ""
},
"onError": [
{
"action": "",
"message": "'{0}'"
}
]
},
"priority": {
"type": "",
"defaultValue": {
"id": 0,
"value": ""
},
"onError": [
{
"action": "",
"message": ""
}
],
"key": ""
},
"client": {
"type": "",
"searchBy": "",
"searchAfls": "Email,Name",
"defaultValue": {
"id": 0,
"value": ""
},
"onError": [
{
"action": "",
"message": ""
}
],
"key": ""
},
"company": {
"type": "",
"searchBy": "",
"defaultValue": {
"id": 0,
"value": ""
},
"onError": [
{
"action": "",
"message": ""
}
],
"key": ""
},
"location": {
"type": "",
"key": ""
}
}
}
],
"model": [
{
"reference": "",
"services": [ 0 ],
"state": {
"key": "",
"mapping": [
{
"value": "",
"id": 0
}
]
},
"additionalFields": [
{
"id": 0,
"field": {
"key": "",
"searchBy": ""
},
"mapping": [
{
"id": 0,
"value": ""
}
],
"value": {
"id": 0,
"value": ""
}
}
]
}
],
"client": [
{
"value": "",
"reference": "",
"id": 0
}
],
"company": [
{
"reference": "",
"value": "",
"id": 0
}
],
"priority": [
{
"reference": "",
"value": "",
"id": 0
}
],
"service": [
{
"reference": "",
"value": "",
"id": 0
}
]
}
Para continuar con el ejemplo descrito, siga los pasos a continuación:
4. Ver Mappings