Need to get the value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 02:26 AM
Hello Community,
I am getting the sys_id in the approval field, though it has referenced to sysapproval_approver table.
Could anybody help to get the value instead of sys_id.
Below is the script, I am using ; -
- 516 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 03:12 AM
what type is field u_approval on M2M?
Approval should be coming with the display value of the task by this.
Can you add some logs to print
current.sysapproval.getDisplayValue();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 03:21 AM
It is reference field, which is referencing to the sysapproval_approver table.
Below is the attached screenshot.
How should I proceed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 03:26 AM
if you are truing to add a display value, you need to do that in a string field.
The document id is the display value of the approval table.
So I would say just use the below
gr1.u_approval = current.sys_id;