- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2020 02:02 AM
Hi ,
I have catalog item with the filed called request type, it is a choice field we have multiple choices. When user selects some of the choices from the dropdown and clicks order now . Then it will create a RITM and attached with catalog task.
Now i need set the catalog task short description field with some text based on the selected choice for catalog item filed.
Please help me how to achieve this. Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2020 07:50 PM
Hi Ankur,
I have given filter condition like below but the values which are not storing in worknotes.
Script:
var str = '';
if(current.u_actual_effort != '')
str = str + previous.u_actual_effort + ' ';
if(current.u_week_and_month != '')
str = str + previous.u_week_and_month;
current.work_notes = str;
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2020 10:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2020 10:13 AM
Do remember to mark my answer as ✅ Correct & 👍Helpful
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2020 10:15 AM
I have updated code
used previous instead of current as you required old value
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2020 07:50 PM
Hi Ankur,
I have given filter condition like below but the values which are not storing in worknotes.
Script:
var str = '';
if(current.u_actual_effort != '')
str = str + previous.u_actual_effort + ' ';
if(current.u_week_and_month != '')
str = str + previous.u_week_and_month;
current.work_notes = str;
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2020 12:03 AM
Hi,
Did you check BR triggered or not?
try adding logs to verify
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader