What is the syntax to access pre pattern execution variables from inside a service mapping pattern

kevinwashington
Tera Contributor

I need the sys_id of the server the pattern is running against.  I know this value is found during pre pattern execution because I see it in the Pre Pattern Execution section of the discovery log.   In the list it shows "computer=<server sysid>.  I confirmed that the server_sysid is the in fact the sys_id of the server I am working against.  I know I can access the pre pattern execution variable because I tried this one and was able to see the value: pattern_runtime_mode

However, I don't know the syntax to access the "computer" variable.     

Does anyone know how to do this?

Thanks!

 

1 REPLY 1

Patrick DeCarl1
ServiceNow Employee
ServiceNow Employee

Have you tried $pre_cmdb_running_process[*].computer ?

 

find_real_file.png