Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

UI Builder DOT walking

vtred
Tera Contributor

Hi SNOW Community,

 

I am able to fetch a value of a field on Incident table
Example: Assignment Group (Referencing to Groups table)

Script inside client script: api.data.gform.nowRecordFormBlob.detailsProps.fields.assignment_group.displayValue

With the above script I was able to retrieve the Assignment group value.

 

However, on the Groups table there is another field called: Location (referencing to location table)

I tried to use the below script, but does not work: 

api.data.gform.nowRecordFormBlob.detailsProps.fields.assignment_group.u_location
 
How do I retrieve the location sys_id from UI builder client script? by DOT walking through Assignment Group field
3 REPLIES 3

SVimes
Kilo Sage

Is there a reason you aren't using g_form.getValue('field')? If you can, you could just do, g_form.getValue('assignment_group.u_location') instead.

Sable Vimes - CSA

vtred
Tera Contributor

Hi Claude, g_form will not work on the UI builder scripts.. 

Manan Bhatt
Tera Contributor

Hey @vtred, were you able to get this accomplished?