Apply Template for parent record using on declarative action
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2025 06:23 AM
I have created one declarative action (sys_declarative_action_assignment) for applying the template in service operation workspace in that I have used below script ,this is not working can someone please help here
function onClick() {
var selectedRec = g_list.getChecked();
var tempSysId = selectedRec.split(',');
alert(" Adding action taken");
parentRecordSysId.applyTemplate(tempSysId);
}
FYI:-
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2025 06:41 AM
are you getting alert?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2025 06:48 AM
Thanks for the reply
I am getting alert but functionality is not working.