Hi,
I’m trying to create a ticket in ServiceNow. I’ve tried using a json request body in an http request step, the ticket is created in ServiceNow. But the json request body is not showing properly the values of the inline variable attributes. Let me show this:
My http request step configuration:
My json request body:
{
"u_actiontype": "Transfer",
"u_department": "{{$.getIdentity.attributes.department}}",
"u_linemanager": "{{$.getIdentity1.attributes.displayName}}",
"u_jobfunction": "{{$.getIdentity.attributes.jobtitle}}",
"u_location": "{{$.getIdentity.attributes.location}}",
"u_enddate": "{{$.getIdentity.attributes.endDate}}",
"u_firstname": "{{$.getIdentity.attributes.firstname}}",
"u_lastname": "{{$.getIdentity.attributes.lastname}}",
"u_sfid": "{{$.getIdentity.attributes.sfId}}",
"u_transferdate": "{{$.getIdentity.modified}}"
}
What is being created on ServiceNow for this ticket:
In theory everyhting seems correct for me, and regarding to a similar topic with the same issue->
The solution provided should work, but it isn’t.
Further more, I’m having the exact same problem with the Manage ServiceNow Ticket step when tryng to create a ticket.
My Additional Fields:
u_actiontype:Transfer
u_department:{{$.getIdentity.attributes.department}}
u_linemanager:{{$.getIdentity1.attributes.displayName}}
u_jobfunction:{{$.getIdentity.attributes.jobtitle}}
u_location:{{$.getIdentity.attributes.location}}
u_enddate:{{$.getIdentity.attributes.endDate}}
u_firstname:{{$.getIdentity.attributes.firstname}}
u_lastname:{{$.getIdentity.attributes.lastname}}
u_sfid:{{$.getIdentity.attributes.sfId}}
u_transferdate:{{$.getIdentity.modified}}
What is being created on ServiceNow for this ticket:
I’ve tried multiple combinations to get a workaround for this issue, but no luck so far.
Any help would be appreciated. Thanks.