Approval based on list collector
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2017 01:49 PM
Anyone has any luck creating approvals based on items selected from a list collector. I have a list of 255 items and each have their own approval groups.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2017 02:26 PM
Can you elaborate your question?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2017 07:47 AM
I have a list collector that references a table. Tis table has values and each value has a different approval group needed. Value A = Approval Group A. The are 255 different values so the list collector is the most efficient way to put it on the customer facing form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2017 02:58 AM
Hello Carl,
You can access the list collector values in your workflow, It should return a list of comma separated list of sys_id.
If your list collector is referring to group table then you can add the following script in the advanced script of approval group activity
var answer = [];
var collector = current.variables.list_collector_variable.toString(); // (Replace list_collector_variable with your variable name)
var list = collector.split(",");
for(var i=0; i< list.length; i++){
answer.push(list[i]); // push each approval groups
}
Thank You
Please Hit Like, Helpful or Correct depending on the impact of response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2017 07:48 AM
Where do I reference the approval group?