Catalog Client script to append dyname variable to end of short description
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 10:08 AM
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:
See attachments for catalog script record. I use Now Assist to generate script.
Any assistance would be appreciated!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 10:31 AM
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.