Custom field in ServiceNow Service Desk Integration of Identity Security Cloud

Hello Sailors ,

I have a custom field attribute named affected_ci to be added in serviceNow SDIM connector of ISC im having the following code
in custom field of snow SDIM

#foreach($req in $.requests)
#set($affected_ci = “”)
#if($request.resource.toString().contains(‘test app1’))
#set($affected_ci = ‘catalogue item id’)
#elseif($request.resource.toString().contains(‘test app2’))
#set($affected_ci = ‘catalogue item id’)
#else
#set($affected_ci = ‘default catalogue item id’) # or we call simply ommit this whole else case
#end
#end

it is throwing the lexical error
Lexical error, Encountered: “"” (34), after : “\” at unset[line 1, column 1530]

my questions are

  1. is there any work around this approach
  2. why do we dont had this affected_ci as default snow SDIM attribute field as it routes the ticket to appropriate snow team
  3. im good with the syntax is there anything im missing as im new to this snow SDIM integration and VTL
  4. is it necessary to iterate over the the loop or I can eliminate the #foreach loop

any sort of blog or suggestion will help

thanks in advance

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.