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.

show me the business rule script

aggarwaltan
Tera Contributor

Add new field Country code under Ticket type in DEV and client script fetching country code from "requested for" user or if "guest" from email address. Only if 2 characters after "." NET or COM shall not be shown.
Country code field shall be possible to show on list view.   

 

only in the tickets it will view 

so please help me with the Business rule script with the whole scenario and make sure that it not copied from Chatgpt or any other AI.

2 REPLIES 2

Bhavya11
Kilo Patron
Kilo Patron

hi @aggarwaltan ,

 

could you please briefly the primary goal of this Country Code field, and if possible, provide a screenshot of the form where you would like the field to appear?.

 

Thanks,

BK

OlaN
Tera Sage
Tera Sage

Hi,

There is  a field on the sys_user table for country code. Is this the one you intend to get data from?

If so, then no script is needed, you could create a business rule that triggers when the user (requested for) changes, and sets the custom field to the users country code.