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

swathisarang98
Giga Sage
Giga Sage

Hi @Nikithesh R ,

 

You can create notification on change_task table and in condition you can dot walk to change request and check if planned start date or end date changed ,

 

swathisarang98_0-1709644803616.png

 

What it will contain you can add the content in body which you want,

 

Please check and Mark Helpful and Correct if it really helps you.

Regards,

Swathi Sarang

Hello @swathisarang98 ,

 

I tried that too it's not working.

 

Thanks

@Nikithesh R  notification is not triggering ? did you check email log ?

@swathisarang98 

Yes I did, checked the email logs. It’s not getting triggered.