How do I set assignment group for a catalog task in the workflow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2016 01:12 PM
I have a requested item for application access that I want to automatically assign to the correct assignment group. There are 50+ possible applications, so I created a separate lookup table (u_security_request) with the fields u_security_request_application (name of the application) and a reference field to task.assignment_group. In the workflow, I create a task that I want to look up to this table and assign to the respective assignment group. I have tried using various scripts on the task in the workflow that others have posted, but not having any success. Also, is this the best way to accomplish this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2016 03:09 PM
I am doing this with a lookup select box, and what ends up happening is that the script writes in the result in blue letters - instead of matching the current choices of the field. On my record producer, I am using a lookup select list pointing towards my choices table, and using a ref
On my record producer, I am using a lookup select list pointing towards my choices table, and using a ref qual to only display one element. I am doing it this way so I don't have to keep updating the record producer, but instead just keep the choice table up to date.
Any idea why it's coming up in blue text, aka not finding a match? I am doing task.contact_type = current.variables.contact_type.
UPDATE: Spoke too soon I guess, I got it fixed. I had to change my lookup select box on the record producer to pull from the "value" instead of the "label".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2016 11:16 AM
I liked the idea of using the task.assignment_group script in the catalog task as I was pursuing that before I posted. However I am not able to get the assignment group field to populate despite using many different combinations.
catalog variable name=sr_application
lookup multiple choice field to u_security_request (table); u_security_request_application (field name)
The u_security_request table extends the task table and I want to display the corresponding assignment.group
I have tried quite a few variations, but none seem to work... am I missing something?
task.assignment_group = current.variables.sr_application.assignment_group;
task.assignment_group = current.variables.u_security_request.application.assignment_group;
task.assignment_group = current.request.u.security_request.assignment_group;
Thanks again for any help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2017 12:06 PM
Hi Shari,
Did you ever figure out why the assignment group was not populating on the catalog task. I'm having the same problem and I've tried every script in heaven.