Dynamic field value for name of template table???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2016 11:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2016 11:25 AM
It will be available only for reference fields .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2016 11:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2016 12:57 PM
William,
I'm afraid you can't, this logic seems to be running in the background at ServiceNow's site.
Stijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2016 12:39 PM
Hi William,
you can configure a Business Rule to automatically set the Template Applied field in the condition with the name of the current template. This would be a before update Business Rule (works as I verified it myself).
(1) I've added a new Fill Applied Template Field on the Template form:
(2) I've configured the Business Rule:
(3) I've created a new Applied Template string field on the incident form:
It's system name must be u_applied_template, otherwise you have to change the name in the script of the previously configured Business Rule. The system name of the field can be discovered by right-clicking on the label name of the field:
(4) Test and enjoy Upon saving your template, automatically the Applied Template & Name will be added to Template field; you no longer have to set it yourself. And when applying the actual template on an Incident, the Applied Template field will be filled in.
Future improvement could be to show the Fill Applied Template Field option on the Template form only in case the selected table is Incident for example; this could be done via an UI Policy.
Important note: I've did this on an OOB Fuji instance.
More information on Business Rules can be found here: Business Rules - ServiceNow Wiki
Kind regards,
Stijn