Reference field not getting set during discovery

phaug
Tera Contributor

I'm trying to set a reference field from one table to another using the discovery pattern.  We have a custom table called FQTP  and I'm trying to populate a reference to a record from that table on our Linux Server table, under a variable called FQTP Ref.  I'm having issues with the steps, I've created a custom operation that is looking at the custom FQTP table, and successfully finding the sys id of the record that's needed, but when I try and set it in the pattern it's not populating in the variable. I've attached screenshots showing the data is populating, it's just not setting the variable field with the reference record.

phaug_0-1718659546143.png

 

 

phaug_1-1718659562220.png

 

phaug_2-1718659572477.png

 

phaug_3-1718659586914.png

 

1 REPLY 1

Patrick DeCarl1
ServiceNow Employee
ServiceNow Employee

I would recommend using pre post processing scripts to handle reference fields. Check out - https://www.servicenow.com/community/itom-blog/using-pre-post-processing-scripts-to-handle-reference...