- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2024 10:45 PM
Context: In my workflow, I have an "Approval - User" (variable = line_manager_approval) and then an "Approval - Group" (called from DCS approval sys_id in the advanced script) activity in sequence. If the line manager is in the group, I want this user removed from the group to achieve two independent approvals, the line manager and a DCS approver. I have tested my script in "Scripts - Background" and it works but not when I apply it in the workflow. I have not assigned the DCS approval group under the "Approvers" heading because it always includes the line manager despite applying an advanced script to remove a manager from the group if the same as the line manager. It should be a simple task but this is taking time and a sanity toll. Could you tell me why the scripting won't work? I have attempted two different methods:
(1) Wait for the condition based on script:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2024 07:10 PM
The solution to my workflow issue is to change my "Approval - Group" to an "Approval - User" because my script is returning users instead of groups in the array.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2024 07:10 PM
The solution to my workflow issue is to change my "Approval - Group" to an "Approval - User" because my script is returning users instead of groups in the array.