- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2016 06:29 AM
Right now, I have a script that auto-populates the short description in the Requester Information, with what it inputs in the Server Name variable as shown in the attached image. The problem is, it only pulls the short description and doesn't add the text I want it to.
Here is my code:
current.short_description = "Server Decommission request - " + current.variables.ShortDesc.getDisplayValue();
Note:
the Sever Name variable is ShortDesc
the Short Description is short_description
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2016 07:23 AM
You don't have Insert or Update checked on the business rule. This leads me to believe something else is setting it because this business rule never ran!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2016 06:57 AM
Give a condition in filter condition of when to run section in the business rule like item is "Your item name". So it will run only for this catalog item.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2016 07:21 AM
Additionally, as a best practice, check if the variable actually has a value before using it.
if (current.variables.ShortDesc)
current.short_description = "Server Decommission request - " + current.variables.ShortDesc.getDisplayValue();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2016 07:21 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2016 07:23 AM
You don't have Insert or Update checked on the business rule. This leads me to believe something else is setting it because this business rule never ran!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2016 07:25 AM
Thank you so much for all your help! That worked!