- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2016 07:26 PM
I have a record producer pulling in the manager that I need to approve the request in the Workflow, but trying to get it to work in the approval process has been unsuccessful.
The record producer is called FromSupervisor, I also have the field populating into the HR_Case in a newly added field Record_Producer_3.
I assumed that I needed to push that field over in the Approval Script on the Workflow, but it continues to skip over the approvals (not referencing anyone)
answer.push(FromSupervisor)
Any guidance would be most appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2016 12:46 PM
Getting closer! Now that you have a field u_approver that is a reference, it is expecting a sys_id of a user record. In your script above you are setting it to the Display Value of the FromSupervisor. This should get your squared away:
current.u_approver = producer.FromSupervisor; - this is assuming FromSupervisor is a reference variable for the sys_user table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2016 09:34 AM
Try answer.push(current.u_record_producer_3);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2016 09:40 AM
Just tried this version Michael, it is still skipping the approval and automatically marking as approved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2016 09:42 AM
What table is your workflow set to? If hr_case then you should be able to just select that field by clicking the lock beside user and choose fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2016 09:47 AM
The workflow is set to the HR Case, but since the field is custom it does not reflect in the lock. I hoped that it would myself, but not there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2016 09:59 AM
can you please paste in a screen shot of the custom field dictionary record?