Notification qyery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 06:34 AM
My target is to send out notification when additional comments change but not from customer reply . Whenever customer reply additional comments update . I need to restrict that update. I gave
hasRole(sn_customerservice_agent);
but not working as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 07:01 AM - edited 05-14-2024 07:01 AM
Can you brief the requirement a little bit more ?
you must pass them in quotes or also try has role exactly > hasRoleExactly('sn_customerservice_agent');
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 10:16 AM
Hi @Anusha Medharam Try the below code in your Notification Advanced Condition
if (gs.hasRole('sn_customerservice_agent') && current.comments.changes()) {
answer = true;
} else {
answer = false;
}
Please mark my answer Correct/Helpful,
Regards
Sid