How to set assignment group from a Catalog Item

jmbrake
Kilo Expert

I have a catalog item called "Self Assigned Task".   I have created a Reference field called "AssignGrp" for this catalog item, which looks up the assignment groups.   I would like to take the group selected during the Request process and have it follow through to the Task.   I am using a workflow to populate other fields down to the Task level, but I cannot get the Assignment group to pass to the task.   The top two lines work fine, the last one does not.   Any help would be appreciated

task.short_description = 'Perform this   ' + current.cat_item.getDisplayValue();

task.description = 'Perform this ' + current.cat_item.getDisplayValue();

task.assignment_group = current.variables.AssignGrp;

1 ACCEPTED SOLUTION

Hi Joan,


Could you try to find out if any other script is forcing blank value?


Might be some other business rule.



You can use field watcher for debugging purpose


http://wiki.servicenow.com/index.php?title=Field_Watcher#gsc.tab=0


View solution in original post

16 REPLIES 16

manikorada
ServiceNow Employee
ServiceNow Employee

Joan,



Try to check if there are any assignment rules or business rules which involves setting Assignment Groups.


I am not finding any assignment rule or business rule that is setting Assignment Group


Hi Joan,



Your script should work. Can you please check the history of the record and see what is the old and new value for that field.


Nothing in history (activity logs) is allowing me to see the AssignGrp field.   I add it as a field to view, but it does not populate


See the activity below and where I personalize the activity area to add Assignment Group.   It is selected, but it does not show in the actual Activity



Capture1.PNG


Capture2.PNG