Catalog Client script to append dyname variable to end of short description

Helen Scheck1
Tera Contributor

Hi!  Looking for some help with getting a catalog client script to append a variable value to the end of short description.  I have been using Now Assist to generate script but when I submit test tickets the value is not added to the short description.  
The ask is client would like to see the 'store number' the request is for to the end of the short description. 
Example: 

New Store Opening 500
See attachments for catalog script record. I use Now Assist to generate script.  
Any assistance would be appreciated!!!

1 REPLY 1

Brad Bowman
Kilo Patron
Kilo Patron

Short description is likely not on the request form, so g_form will not get/set the value.  Since you don't need to see this on the form, it would be best to add this to the beginning of your flow/workflow, or use a before Insert Business Rule on the sc_req_item table, then you can add some Filter Conditions so that it only runs with this Catalog Item.  The BR script would be similar, except using current.short_description and current.variables.var_name in place of g_form.