- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 06:56 AM
Hi,
i m trying to retrieve the assignement group related to the choice selected in the catalog item.
with this script in a task activity :
var a= current.variables.la_reclamation_concerne.getDisplayValue();
//gs.log(a,'aaaa'); ==> good value.
var getag=new GlideRecord('u_sctask_assignment_socle_open'); ==> for every choice, an assignment group is dedicated in this table.
getag.addQuery('sys_id',a);
//gs.info("Field value iss "+getag.u_recl);
getag.query();
if(getag.next())
{
task.assignment_group=getag.u_assignment_group_open;
}
the variable in the catalog item : la_reclamation_concerne : "Lookup select box"
Any Idea why it s not working?
Thank you for your help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 09:45 AM
It works with this : getag.addQuery('u_recl.label', a);
thank you for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 08:17 AM
Are you trying to update catalog task assignment group through workflow script ?
please check once again getag.addQuery('u_recl',a); if the field backend name is correct and try giving a.toString() and compare it with name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 09:44 AM
It works with this : getag.addQuery('u_recl.label', a);
thank you for your help

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 07:16 AM
Try this
var a= current.variables.la_reclamation_concerne;
gs.log(a,'aaaa');
var getag=new GlideRecord('u_sctask_assignment_socle_open');
getag.addQuery('sys_id',a);
//gs.log(getag,'aa');
gs.info("Field value iss "+getag.u_recl);
getag.query();
if(getag.next())
{
task.assignment_group=getag.u_assignment_group_open.getValue();
}
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 07:50 AM
not working 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 09:44 AM
It works with this : getag.addQuery('u_recl.label', a);
thank you for your help