Assign Fulfillment Group Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2017 07:23 AM
Hopefully this is an easy fix. I'm attempting to automatically fill the fulfillment group for a catalog task based on a selection in another field (which team). I'm trying this line of code in the Script portion of the catalog task of the workflow:
task.fulfillment_group = current.variables.infrastructure_team_select;
Anyone know why this wouldn't be working? I'm not a developer and have zero scripting background, so I'm trying to dive into this a little bit at a time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2017 07:27 AM
I believe you'll want to reference the "task.assignment_group", unless you have a custom field for fulfillment group on your task table..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2017 07:32 AM
Thanks for the quick reply Kristen. I actually tried that as well to no avail.
Also, and I'm not sure if it will impact the script because of my lack of knowledge. I have another line written before it that sends the short description and the request details to the user, so the advanced script box actually looks like this:
task.short_description = task.short_description +"-" +current.variables.request_details;
task.fulfillment_group = current.variables.infrastructure_team_select;
The top line works as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2017 07:46 AM
What type of variable is the infrastructure_team_select?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2017 07:50 AM
It is both an order guide variable and a catalog item variable. I used the cascade variables selection from the order guide to autofill the catalog item answer.