Move custom field value in ritm to approvers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2024 04:33 PM
Hello everyone
I need your help with the sysapproval_approver table. First I have a ritm (catalog item), and in this ritm I have a custom field (text field for comments). I would like to pass the value of this custom field to the comments field (highlated below) of the approvers through a Business Rule. But the script, and I have tried multiple ones, none have worked. Can anyone tell me if it can be achieved with a script or does it need to be done in a different way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2024 06:54 AM
Thanks Anvesh for your help, I think your approach can help but I have not tested. I already identify the issue before and it was just to add quotation marks, like below:
...
gr_approvalinfo.comments = '' + current.u_customfield;
gr_approvalinfo.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2024 10:59 AM
@LuLe Game Adding those quotation marks will convert the value to string instead of a reference, and when we use getValue() it will return the field value as string only.
Anvesh