Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/11/2024 03:16 PM - edited 04/11/2024 06:16 PM
Hi,
I can successfully create a ticket in ServiceNow however when I add this code \\\\nPosition Title:'+user.jobcodedesc+'. to the request_details the ticket creates but is populated with the REST code rather than correct details.
Ticket created and is populated correctly.
\\\\nLine Leader First name: '+userManager.firstname+'.\\\\nLine Leader Last name: '+userManager.lastname+'. \\\\nStart Date (Join Date):'+ user.startdate +'. \\\\nEnd Date (Max Position End Date): NA'
Ticket created and is populated incorrectly.
\\\\nLine Leader First name: '+userManager.firstname+'.\\\\nLine Leader Last name: '+userManager.lastname+'. \\\\nPosition Title:'+user.jobcodedesc+'.\\\\nStart Date (Join Date):'+ user.startdate +'. \\\\nEnd Date (Max Position End Date): NA'
The user I'm testing with has jobcodedesc populated.
***** Update: The user did not have a manager and hence why it failed and was not the jobcodedesc in the end. For null values do I need to change each attribute to test for null e.g
\\\\nLine Leader First name: '+${(userManager.lastname == null)?'No LineLeader Assigned':userManager.lastname}+'
thanks
TIA
Solved! Go to Solution.
04/11/2024 07:31 PM
\\\\nLine Leader First name: '+userManager?.firstname+'.\\\\nLine Leader Last name: '+userManager?.lastname+'. \\\\nPosition Title:'+user?.jobcodedesc+'.\\\\nStart Date (Join Date):'+ user?.startdate +'. \\\\nEnd Date (Max Position End Date): NA'
04/11/2024 09:12 PM
Thanks Rushikesh