[ 
https://issues.apache.org/jira/browse/CAMEL-11560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Luca Burgazzoli updated CAMEL-11560:
------------------------------------
    Description: 
The answer for an import set looks like:

{code}
{
  "import_set": "ISET0010049",
  "staging_table": "imp_incident",
  "result": [
    {
      "transform_map": "imp_incident",
      "table": "incident",
      "display_name": "number",
      "display_value": "INC0010398",
      "record_link": 
"https://ven01685.service-now.com/api/now/table/incident/22bc486ddb90c30040e47bedbf96191c";,
      "status": "inserted",
      "sys_id": "22bc486ddb90c30040e47bedbf96191c"
    }
  ]
}
{code}

It would be nice if there is an option to automatically grab the record and 
include it in the response.


  was:
Some fields may reference to records in other tables so it would be nice if 
such reference could get expanded.

i.e. when grabbing an incident the caller_id is in the following form:

{code}
"caller_id": {
    "link": 
"https://ven01685.service-now.com/api/now/table/sys_user/d2f33d344f78a600dabd4e318110c7ef";,
    "value": "d2f33d344f78a600dabd4e318110c7ef"
},
{code}

It would be nice if there is an option to "follow links" and grab the user 
definition.



> ServiceNow : allow to expand reference types in import_set response
> -------------------------------------------------------------------
>
>                 Key: CAMEL-11560
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11560
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-servicenow
>            Reporter: Luca Burgazzoli
>            Assignee: Luca Burgazzoli
>            Priority: Minor
>             Fix For: 2.20.0
>
>
> The answer for an import set looks like:
> {code}
> {
>   "import_set": "ISET0010049",
>   "staging_table": "imp_incident",
>   "result": [
>     {
>       "transform_map": "imp_incident",
>       "table": "incident",
>       "display_name": "number",
>       "display_value": "INC0010398",
>       "record_link": 
> "https://ven01685.service-now.com/api/now/table/incident/22bc486ddb90c30040e47bedbf96191c";,
>       "status": "inserted",
>       "sys_id": "22bc486ddb90c30040e47bedbf96191c"
>     }
>   ]
> }
> {code}
> It would be nice if there is an option to automatically grab the record and 
> include it in the response.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to