Notification

Vaishali 11
Tera Guru

There is 1 category under which there are 9 catalog items. There is one specific user who wants to get notified whenever any one item is ordered from that category.
How to achieve this?

 

 

Thanks in advance!!

1 ACCEPTED SOLUTION

Rohit01998
Tera Guru

Hello @Vaishali 11 

follow the below steps:

1. Create one event in Event Registry

2. Create After business Rule on Requested item table on insert and write below script.

 

if(current.cat_item.category=='b06546f23731300054b6a3549dbe5dd8'){ //replace sys_id with your catagory sys_id
		gs.info('catagory'+current.cat_item.category);
		gs.eventQueue('your_event_name',current,current.number,gs.getUserName()); //
	}

 

3. create notification on Requested item table and add that User in who will receive tab

Screenshot 2023-09-01 at 7.09.13 PM.png

 

Mark my answer correct and give 👍if this helps you...

Thanks,

 

 

View solution in original post

4 REPLIES 4

Rohit01998
Tera Guru

Hello @Vaishali 11 

follow the below steps:

1. Create one event in Event Registry

2. Create After business Rule on Requested item table on insert and write below script.

 

if(current.cat_item.category=='b06546f23731300054b6a3549dbe5dd8'){ //replace sys_id with your catagory sys_id
		gs.info('catagory'+current.cat_item.category);
		gs.eventQueue('your_event_name',current,current.number,gs.getUserName()); //
	}

 

3. create notification on Requested item table and add that User in who will receive tab

Screenshot 2023-09-01 at 7.09.13 PM.png

 

Mark my answer correct and give 👍if this helps you...

Thanks,

 

 

Hi Rohit,

I followed the exact same steps as mentioned above, but the notification is not triggered. The email is not generating. Could you please suggest?

Could you send the screenshot of notification and business rule?

It's working now.Thanks!!