Display catalog variables on task form

madeves
Kilo Contributor

There are a lot of questions regarding workflow and variables but none that seem to answer my question.

 

I am using a workflow to create a task from a Requested Item.   This is a facilities task.   I am trying to pass the variables completed on the form onto the Facilities task but I cannot seem to get this to work.   I don't want to use a record producer.

 

Has anyone got any suggestions please?

17 REPLIES 17

madeves
Kilo Contributor

Hi,


Many thanks for this.


I will have a go and let you know how I get on.


jmccormi
Kilo Explorer

If you are still having issues with this and need to get those variables to display, I put out a script include on the share site that will make those catalog tasks available on any TASK based table.



Requested Item Variables on any Table


vinothkumar
Tera Guru

Hi,



My script part is more than 4000 character which exceeds the max length of Advanced script field in workflow..Is there any way to call this function using script include..I tried but not working..for setting the values in the catalog task form based on the RITM variables..I have more than 80 variables in the RITM form



Can any one help me on this.



var onbehalf = current.variable_pool.on_behalf;


var title = current.cat_item;


var titlename = current.cat_item.name;


var loc = '';


if (onbehalf != null){


      loc = current.variable_pool.on_behalf.location;


}


else{


      loc = current.request.requested_for.location;


}


var ir = getItemRouting(title, loc);


if (ir != null) {


      task.assignment_group = ir.u_group;


      task.assigned_to = ir.u_assigned_to;


      task.short_description = titlename;


      task.u_resolved_enabled = ir.u_request_item.u_resolved_enabled;


      var msg = "Options:\n";