We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Business Rule not working as expected for email field validation in sc_req_item

Not applicable

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 .

 

1 REPLY 1

Uncle Rob
Kilo Patron

UncleRob_0-1732829012276.png

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.