The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Setting values in Workflow Catalog task

Wade Clairmont
Tera Guru

I am attempting to create a workflow that will allow me to set some values in a workflow catalog task.   The example in the advanced field shows to qualify the field name with task ( task.approval = 'Approved').

 

My issue is, this doesn't work.   I have tried every way to get the values to set, and found one that partially works:

task.approval.setValue('Approved');                                                 which finally sets Approval to approved.

task.assignment_group.setValue("Service Desk');   doesn't work.   My assumption is that these values are not stored together on the same table, or else it would work,                                                                                                                                                                                   right?

 

Any ideas on how to set assignment group in workflow advanced script?

 

Thanks in advance.

11 REPLIES 11

That is very strange.


Here is a screenshot of one of my workflows


WF task.PNG
That is a very strange occurrence that I have never had an issue with and I can't think of a reason yours wouldn't work.


I have confirmed the sys_id of the group to be assigned.


service desk sys_id.png



Here is the code I am using:


grains sys_id.png


Now, I am wondering, is there a possible conflict between the settings in System Properties -> Approval Engines?   Could this be an issue?


From the information provided, I really don't see why it would not work.


As a test, You might try creating just a test group to rule out any issue with the group itself.


I would also try adding the group name into the fulfillment group field on the activity properties, just to see if you can get a task created with an assignment group from there.


Unless Brad has any other suggestions, or those tests give you other leads, I am at a loss. Might be time for a HI ticket.




I have tried just adding the group name to the activity, and from day 1 that never worked.   The only way I could assign a group to a catalog item up to now is to specify the group in the maintain items form.



I will try with a test group, here's to hoping for the best.  



Thanks a bunch for your assistance.


No luck, so not group creation/setting issue. I will have to go to HI as you stated.



Thanks again.