Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Business Rule condition getDisplayValue('document_id')

xiaix
Tera Guru

On this table:

find_real_file.png

I have this Advanced Condition

find_real_file.png

Question... is the "document_id" field on the sysapproval_approver table a calculated field for getDisplayValue()??

The reason I'm asking is because when all is said and done, I need this business rule condition to be:

find_real_file.png

Now, in Script Include code, this queries just fine and pulls back perfectly... but when I try the code in this business rule as a condition, it always comes up blank.

Why does getDisplayValue('approver') work in the condition, but not getDisplayValue('document_id') ??

14 REPLIES 14

tim_harris
Giga Expert

I'm pretty sure document_id is not a reference field type. Only reference fields will provide a display value. The document_id is basically just the sys_id.


In addition, I think the field you will want to look at it the sysapproval field. IT is a reference field to the task being approved.


It's not a task nor on the task table.   I'm after the correct field.


It's a "Document Id" type, 32 characters long, and holds the sys_id of the record that created the approval record.