- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2019 07:35 AM
Hi
When using actionable case flows the OOB "Set Needs Attention if additional comments are added by others" marks a case as needing attention when a member of our Service Desk Sends a comment to the Contact on behalf of another member of the team.
Our Service Desk so this quite a lot so we dont really need to "Needs Attention" flag to be set on these occasions.
How can I edit this case flow to exclude them?
Thanks
Solved! Go to Solution.
- Labels:
-
Customer Service Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 08:26 AM
Hi Richard,
I haven't tested this, but you can try replacing current "else if" statement
else if(lastCommentsCreatedBy != inputs.ah_caseRecord.assigned_to.user_name)
outputs.commentedByOthers = true;
with the following "else if" statement.
else if(lastCommentsCreatedBy == inputs.ah_caseRecord.contact.user_name)
outputs.commentedByOthers = true;
This will set the "Needs Attention" flag only when the comment is added by the Case contact.
Thanks,
Parag Mone

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2019 11:00 AM
Hi,
Flow "Set Needs Attention if additional comments are added by others" invokes subflow "Check if comment is added by others" which internally invokes Action "Check if comment is added by others". This Action checks for following three conditions -
1. If the "Additional Comment" is added by "system" user then set the "Needs attention" flag to false.
2. If the "Additional Comment" is added by the user who is different than case owner (assigned to) then set the "Needs attention" to true.
3. For every other condition set it to false.
Modify this "Action" script based on your requirements.
Thanks,
Parag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 07:41 AM
Hi Parag
Thanks for the response.
If I wanted to change the elsif statement so that it only returned tru if the additional comment is added by the contact, how would I code that?
Thanks again.
Richard

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 08:26 AM
Hi Richard,
I haven't tested this, but you can try replacing current "else if" statement
else if(lastCommentsCreatedBy != inputs.ah_caseRecord.assigned_to.user_name)
outputs.commentedByOthers = true;
with the following "else if" statement.
else if(lastCommentsCreatedBy == inputs.ah_caseRecord.contact.user_name)
outputs.commentedByOthers = true;
This will set the "Needs Attention" flag only when the comment is added by the Case contact.
Thanks,
Parag Mone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2019 07:04 AM
Perfect, thank you very much.