HR task and catalog item

eyal abu hamad
Mega Sage

Hey all,

I have a mission that need's me to submit for user an HR task that contains a catalog item

eyalabuhamad_0-1692697775578.png

after the user submit the form I want by workflow to check some variables and see if they are meet the requirements to continue. I could not find a way to catch the variables from the catalog item.

eyalabuhamad_1-1692699825497.png

in the catalog item I have Checkbox, now I want to make if the checkbox is true the workflow continue and if not I will close the case.

the table that I'm working on is HR CASE
and this workflow is in the HR services 

4 REPLIES 4

Mohan raj
Mega Sage

Hi @eyal abu hamad,

To find the catalog variable in workflow, you can use if condition activity or Run script activity 
In IF condition activity 

 

There is one field in the condition builder ie., variables if you select variables then select catalog item and then variable as shown below 

 

Mohanraj_0-1692700454335.png

 

In Run script activity 

 

 

 

var test = current.variables.incident.getValue();

 

 

 

If my response helps you to resolve the issue close the question by Accepting solution and hit thumb icon. From Correct answers others will get benefited in future.

Regards,

T Mohan.

eyalabuhamad_0-1692706927311.png

I cannot find the Variable filed.
the workflow is on the HR CASE table

also I got this error

eyalabuhamad_0-1692709761516.png

 

Hi @eyal abu hamad

Try this in your script

 

var test = current.variables.checkbox_student_application;
gs.log(test);