How can I get sys ID from reference field? I am using client script. Please see description below.

Ramesh4
Giga Contributor

I have a field name is  Xyz and a reference from another job family table, I don't know to get sys Id for Xyz. Could you please help me with this?

Appreciate your help.

7 REPLIES 7

Jaspal Singh
Mega Patron
Mega Patron

Hi Ramesh,

 

Reference field will always return sys_id. Can you confirm what exactly is your need & detail out the complete scenario for better assistance.

Hi Jaspal, thanks for your quick response. 

Using client scripts

I have reference examples below....., if I get any solution with this that would be appreciated.

 If I capture the family name from  Family fields and Level from  Level fields, both field record needs to auto-populate in the Role number field and Prefix from  Family and the Family Level both field record need to auto-populate in the Family code field.

 

 
Role(Number)123...( Need to auto-populate Indian Family Name and Family Level 
 
 
 
 
 
 

Vaibhav20
Tera Contributor

I waned to fetch the Sys_id of the reference field from the m2m table in an Action Attribute, please check below

Vaibhav20_0-1727238940275.png


Please advice on what could be done here, as basically the parent(reference) field name is 'Entity'

Thanks and Regards
Vaibhav Vishwakarma