Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Assign Fulfillment Group Script

jcsmith
Kilo Contributor

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.

12 REPLIES 12

kristenankeny
Tera Guru

I believe you'll want to reference the "task.assignment_group", unless you have a custom field for fulfillment group on your task table..


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.


What type of variable is the infrastructure_team_select?


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.