EN
Español
English
Português
    Definition

    The following example shows how to populate the configuration file in order to integrate between ASMS and ServiceNow. Start with a totally clean configuration file as shown below:

    {
        "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
            }
        ]
    }
    

    To proceed with the example described, follow the steps below:

    3. View WorkOrder Mapping

    4. View Mappings

    5. View Model Mapping