Business Rule condition getDisplayValue('document_id')

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2016 08:23 AM
On this table:
I have this Advanced Condition
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:
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') ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2016 08:28 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2016 08:30 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2016 08:37 AM
It's not a task nor on the task table. I'm after the correct field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2016 08:35 AM
It's a "Document Id" type, 32 characters long, and holds the sys_id of the record that created the approval record.