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
- is there any work around this approach
- why do we dont had this affected_ci as default snow SDIM attribute field as it routes the ticket to appropriate snow team
- im good with the syntax is there anything im missing as im new to this snow SDIM integration and VTL
- 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
