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.

Want to set default value of that column ​​only when opened via service Service Catalog

matsui
Tera Contributor

I have a Service Catalog.
Service Catalog Item has Table URL.
In other word, I will open that table via Service Catalog.
That table has choice type column.
I want to set default value of that column ​​only when opened via service Service Catalog.
How can I configure it?

1 REPLY 1

Gurpreet07
Mega Sage

How are you opening that table from service catalog item. Is it a record producer that creates a record in your table. If so than you can use record producer script to set the value in the field

current.field_name = 'value';

 

If its a link somewhere on the catalog item then value could be set to the new record via sysparm_query parameter in the url. For example the new incident record

instance_name.service-now.com?sys_id=-1&sysparm_query=short_description=Test Value