Business Rule not working as expected for email field validation in sc_req_item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2024 12:18 PM
Scenario:
I need to enforce a rule where users cannot close a task unless the Email field in the sc_req_item table is filled.
What I Did: I created a business rule to check if the Email field is empty, and prevent the task from being closed.
Issue:
The rule is behaving incorrectly in both scenarios:
1. When the Email field is empty, users cannot close the task.
2. When the Email field is filled, users still cannot close the task .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2024 01:30 PM
First off, why are you doing a gliderecord lookup to the RITM, when that's dot-walkable from the sc_task (which is current in this case)?
Second, did you log out what "gs.nil(ritm.email_id)" actually returns? Because email_id isn't a field on sc_req_item OOB. If you had added an email_id field it would be called u_email_id.