- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 04:59 AM - edited 03-05-2024 05:02 AM
Hello,
When Planned Start or End date changes notification should be triggered to Ctask assigned to person. I am trying to achieve this using event trigger and BR on Ctask table, when I give condition planned start or end date changes notification is not getting triggered. Need some inputs.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 07:52 AM
Hi @Nikithesh R ,
I got it working 😁,i tried in my pdi , please refer below
Create before update BR on change request table,
(function executeRule(current, previous /*null when async*/ ) {
gs.info('inside br');
var demand = new GlideRecord('change_task');
demand.addQuery('change_request', current.sys_id);
demand.query();
if (demand.next()) {
gs.info('inside if');
gs.eventQueue('test.notify', demand, '', '');
}
})(current, previous);
Event:
Notification:
When event is triggered,
Result:
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 05:11 AM
Can you share your notification and event trigger?
And why not just put the condition on case task when parent.start_date changes?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 05:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 05:39 AM
You are triggering the BR on the Change table, I assume? And you are giving the current assigned to as parameter (which is the assigned to of the change). Is that correct?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 05:44 AM
BR is on change task table. Ctask assigned to is the parameter.