How to Auto Populate Sys_id of the record in Model Number Field ?

gagan12
Tera Contributor

Hi,

Recently I created A 'NEW' UI action on 'Product Model' Related Banner List. After clicking 'NEW', I am able to create new product model. After submitting the form I want Model Number Field to be auto populated with sys_id  of the record. I want sys_id to be also shown on related list of Model Categories.

Model Number Field should be populate as: "Sysid:<32 digit sys_id>"

Please refer attachment for better clarity.

 

Thanks:

Pratiyush

1 ACCEPTED SOLUTION

jaheerhattiwale
Mega Sage
Mega Sage

@gagan12 Create a before insert business rule and add below line to script

 

current.<MODEL NUMBER FIELD NAME> = "Sys Id: "+current.sys_id.toString();

 

Please mark as correct answer if this solves your issue.

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023

View solution in original post

1 REPLY 1

jaheerhattiwale
Mega Sage
Mega Sage

@gagan12 Create a before insert business rule and add below line to script

 

current.<MODEL NUMBER FIELD NAME> = "Sys Id: "+current.sys_id.toString();

 

Please mark as correct answer if this solves your issue.

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023