Home
    Webhook para ServiceNow

    Webhook ServiceNow

    Método: POST
    Url: /webhooks/99008/servicenow/{referenceExternalClass}/{id}
    Descripción: Notifica el cambio de un caso en ServiceNow

    Encabezados

    Nombre Descripción
    X-Authorization Token JWT de autorización.
    Debe tener el formato: Bearer token

    Parámetros

    Nombre Tipo Descripción
    referenceExternalClass string Nombre que se agregó en la propiedad “externalClass.reference” en el archivo de configuración
    id string sys_id del CI en ServiceNow

    Respuesta

    Nombre Tipo Descripción
    id int Identificador interno del CI
    result bool? Si la creación o actualización tuvieron éxito

    Ejemplo:

    { 
      "id": int, 
      "result": true/false, 
    } 
    

    Códigos de error

    Código Descripción
    AIC90008_001 Project invalid ‘{0}’
    AIC90008_0011 Field ‘{0}’ required
    AIC90008_0012 Invalid CI id ‘{0}’
    AIC90008_0013 Problems updating ServiceNow CMDB
    AIC90008_0014 CI requires a name
    AIC90008_0015 CI requires a state
    AIC90008_0016 The ‘{0}’ registered in the configuration file ‘{1}’, does not correspond to the ‘{0}’ in ServiceNow ‘{2}’
    AIC90008_0017 Mapping type ‘{0}’ no found
    AIC90008_0018 Table ‘{0}’ already assigned
    AIC90008_0019 Category Id ‘{0}’ already assigned
    AIC90008_002 ClassCMDB not found ‘{0}’
    AIC90008_0020 Configuration empty
    AIC90008_0021 Field definition ‘{0}’ requires data matching, add property ‘{0}’
    AIC90008_0022 Field ‘{0}’ required, definition ‘{1}’
    AIC90008_0023 Field ‘{0}’ NO required
    AIC90008_0024 Field types ‘{0}’ in ServiceNow and ‘{1}’ in CMDB, are not compatible with each other
    AIC90008_0025 Cannot determine what type of mapping the additional fields have: {0}
    AIC90008_0026 Field ‘{0}’ requires property ‘{1}’
    AIC90008_0027 Buggy schema
    AIC90008_0028 Reference ‘{0}’ is already assigned
    AIC90008_0029 Field ‘{0}’ required, definition ‘{1}’
    AIC90008_003 CI definition not found ‘{0}’
    AIC90008_0030 The user has no associated projects
    AIC90008_0031 Unauthorized
    AIC90008_0032 Property name ‘{0}’ has already been assigned
    AIC90008_0033 State ‘{0}’ has already been assigned
    AIC90008_0034 Invalid value ‘{0}’
    AIC90008_0035 Invalid MappingDirection type ‘{0}’
    AIC90008_004 Category not found ‘{0}’
    AIC90008_005 Category with ClassCMDB ‘{0}’ not found
    AIC90008_006 Mapping for property ‘{0}’ not found
    AIC90008_007 Mapping values for property ‘{0}’ and ClassCMDB ‘{1}’ not found
    AIC90008_008 Field ‘searchBy’ required in field additional ‘{0}’
    AIC90008_009 Invalid Cmdb type ‘{0}’
    AIC90008_010 ClassCMDB not found in mapping data ‘{0}’
    AIC90008_200 An error occurred while updating information in CMDB
    AIC90008_300 An error occurred while updating information in ServiceNow
    AIC90008_999 Unknown error