Trigger notification to CTask assigned to when plaaned start or end date changes on Change form

Nikithesh R
Tera Contributor

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.

1 ACCEPTED SOLUTION

Hi @Nikithesh R ,

 

I got it working 😁,i tried in my pdi , please refer below

 

Create before update BR on change request table,

swathisarang98_0-1709653765983.png

swathisarang98_1-1709653796257.png

 

(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:

swathisarang98_2-1709653819780.png

Notification:

 

When event is triggered,

 

swathisarang98_3-1709653840894.png

 

Result:

swathisarang98_4-1709653951571.png

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

 

 

 

 

 

 

 

View solution in original post

13 REPLIES 13

Mark Manders
Mega Patron

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

Hello,

Please go through snaps.

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 Manders 

BR is on change task table. Ctask assigned to is the parameter.