Add worknote of sysapproval_approver record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 06:19 AM - edited 02-29-2024 06:46 AM
Hi, I have a workflow where approval group activity was setup.
I need to put short description of group approval record[sysapproval_group] into approval record[sysapproval_approver] comments.
Tried with before insert Business Rule with the below code
(function executeRule(current, previous /*null when async*/ ) {
var grpRec = current.group;
current.comments = "test1 " + grpRec + " end1";
current.comments = "test2 " + grpRec.short_description + " end2";
current.comments = "test3 " + current.state + " end3";
current.update();
})(current, previous);
Output:
I can get the sys_id of the group record[sysapproval_group] but its not fetching thats short_description.
Note: group field is reference
Any guidance please!
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024 01:42 AM
@Aruna Sree Yela
It should populate, I tried it in my PDI and it was working fine for me.
Is this happening for a specific user or for all?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024 07:32 AM - edited 03-01-2024 07:33 AM
I'm testing it as an admin!
And may I know if these kind of scenarios happen in scoped application? Cuz I doing that in custom scoped application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024 07:56 AM - edited 03-01-2024 07:57 AM
In my PDI also I'm getting same issue
If possible, can you please attach the snip of your trails.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2024 11:44 PM
Hi @Aruna Sree Yela
I did the test in the background script.