Рет қаралды 1,743
For More Information, please check details below:
In this session, I have explained how to Copy Work notes from Requested Items to Catalog Tasks using Business Rules.
========================BUSINESS RULES==========================
TABLE - Requested Item
WHEN TO RUN - Asynch and on Update
CONDITION - Worknotes Changes
SCRIPTS -
(function executeRule(current, previous /*null when async*/ ) {
// Add your code here
var sc_task = new GlideRecord('sc_task');
sc_task.addQuery('parent', current.getUniqueValue());
sc_task.query();
while (sc_task.next()) {
sc_task.work_notes = current.work_notes.getJournalEntry(1);
sc_task.update();
}
})(current, previous);
If you have any feedback related to the scripting part, please write it in the comment box.
My Playlists for Quick Access for Various Learning Paths:
ServiceNow Interview Questions - • Playlist
ServiceNow Scenario Based Solutions - • ServiceNow Scenario Ba...
ServiceNow Scripting - • ServiceNow Scripting
ServiceNow Advanced Concepts - • ServiceNow Advanced Co...
ServiceNow Concepts - • ServiceNow Concepts
ServiceNow Tips & Tricks - • Playlist
ServiceNow San Diego Release - • ServiceNow San Diego R...
ServiceNow Basics & Overview - • ServiceNow Basics & Ov...
ServiceNow App Engine Studio - • ServiceNow App Engine ...
ServiceNow Shorts - • ServiceNow Shorts
#servicenow #learnit #learnitbyprashant
Thanks for Visiting my Channel . Here I will be sharing all kinds of technical Knowledge. Anyone can connect with me directly for anything as part of ServiceNow Related Query.
Keep Supporting me so that I can continue to provide you good content each time!!😇🙏
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Thank you for Watching My Videos!!!
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬