If a caller updates or add additional comments then flagged (custom field ) must be checked true.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 11:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 12:46 AM
I don't know your business requirement, as per scenario you provided it can be done via before update business rule.
You have to follow below stapes:
1. Create Business rule on incident table and checked advanced as True.
2. Update When to Run table as below:
3. Update action tab as below:
4. Save the business rule.
And this business set flagged as true either if user update caller on incident record or update additional comment field.
Please mark helpful or correct if above solution work for you. Or let me know if you need more details with your business requirement.
Thank You.
Regards,
Shubham Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 12:53 AM - edited 03-29-2024 12:55 AM
To ways you can go
1. on change client script - on change of value your custom filed set as true /false
2. Using BR add condition- when to run condition
Please like or mark correct/Helpful based on the impact of the response.
Thanks & Regards,
Pushpanjali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 12:58 AM
(function executeRule(current, previous /*null when async*/) {
// Check if comments field has changed and caller is not empty
if (current.comments.changes() && current.caller.getDisplayValue() != '') {
// Set flagged field to true
current.flagged = true;
}
})(current, previous);
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 01:36 AM
Please try this code-
(function executeRule(current, previous /*null when async*/) {
if (current.comments != previous.comments && current.caller_id == gs.getUserID()) {
current.flagged_field = true;
}
})(current, previous);
Please mark my answer helpful and correct.
Regards,
Amit