Notification triggering twice

SNow35
Giga Guru

Hello,

I have a knowledge notification which should be sent to author of the article whenever the approver rejects it. I have created an event and triggering it in after update business rule.

Created a notification and checked event param 1 and send to event creator checkbox, now the notification is going twice when the article is rejected. Please let me know if I need to make any other changes.

Thanks in advance.

1 ACCEPTED SOLUTION

Hello,

I want to get the rejection comments in the notification which is available on the approval table, if I trigger the event from workflow I wont be able to populate the comments.

Do you have any thought on how this can be populated while triggering it from workflow.

 

View solution in original post

14 REPLIES 14

Hello,

But it is still triggering two emails for me. 

does the both email notifications are same or different?

 

also what is the value your comparing with property? i

Regards
Harish

Hi, 

When I replaced the current.document_id.author with current.document_id.author.email the event is triggered only once but I am not able to see the notification in logs.

Hello,

Excuse my late reply. A thought regarding your case, instead of adding this as a business rule on approval, why not add the notification to the workflow?

Add it as a notification triggered on rejection. That way you get access to the Knowledge article directly and don't have to use the somewhat fickle approval record.

The reason it triggers two times I believe is due to approval record doing additional work after having been first updated.

If you want to use the business rule, here's my thoughts on it:
Using current.document_id.author.email is not needed, as notifications takes the sys_id of users or groups and uses that to send to the registered email addresses.
In your business rule though, you do get the KB record, so instead of current.document_id.author, send gr.author (or even gr.author.sys_id).

With regards
Anton

Hello,

I want to get the rejection comments in the notification which is available on the approval table, if I trigger the event from workflow I wont be able to populate the comments.

Do you have any thought on how this can be populated while triggering it from workflow.