Email notification should trigger when add comments changed

dmahendran
Tera Contributor

Hello Folks,

 

Good Day!
I was stucked with a requirement, when someone entered any value in the additional comments in catalog task i need send an email notification with the details what they have been entered.

Tried with Notifications and BR's can achieve this one..

I will desperately need someone to assist me in this issue..

Any assistance would be appreciated!!!

10 REPLIES 10

Hi @dmahendran ,

 

1)Change the Business Rule Type form After to Before BR.
2) Check you are following all the steps Event name should be called in Notification and BR eventqueue.

3)Check if the requested for have valid email, also check email outbound notifications are enabled in your instance.

 

Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand

Its working in my pdi follow steps as below 

 

IMG_6623.jpeg

IMG_6624.jpeg

IMG_6632.jpeg

IMG_6626.jpeg

IMG_6627.jpeg

IMG_6628.jpeg

IMG_6631.jpeg

IMG_6630.jpeg

IMG_6629.jpeg

  

@Anand Kumar P 
It is working in my PDI, but not in my project instance. Additionally, no emails were triggered when additional comments were added.

Runjay Patel
Giga Sage

Hi @dmahendran ,

follow below steps:

1. Create one br and add below condition 

current.additional_comments.changes() && current.additional_comments != ''

 

2. create one event based notification and add the subject line and mail body as per your requirements.

3. In your br use below script.

gs.eventQueue('catalog.task.comment.update', current, current.sys_id, current.additional_comments);

4. in email body use below

Comment:

${event.param2}

 

Accept and like the solution if it helped.

@Runjay Patel  Appreciated for the response, tried this before, but still the issue persists.