How to access catalog task variables in flow designer

User376281
Kilo Contributor

Hi All,

I have a flow for service catalog to create a user record in sys_table . Can anyone please to access the  variable "employee id" in sc_task. The submitter won't be able to give the input  for the variable while submitting the requester detail.

Here assignment group will give input for employee id in catalog task .I need to map  employee id variable of sc_task to my employee id  field of sys_user table.I used f(x) and tried calling the task variable.

var employee=fd_data._2_create_catalog_task.record.variables.employee_id;
return employee;   //its not accepting and giving error.

PFB the screenshot of the flow . Thanks in advance!!!!

find_real_file.png

1 ACCEPTED SOLUTION

My bad. Looking at the screenshot, "Employee ID" seems to be a variable in a custom form instead of a field in the sc_task table.

Use "Get Catalog Variables" action to get fields in the form.

View solution in original post

4 REPLIES 4

Hitoshi Ozawa
Giga Sage
Giga Sage

Use "Look Up Record" or "Look Up Records" to get the record in sc_task.

"Look Up Records" will get all the matching records, use "For Each Item in" action.

That said, there's no column "employee id" in sc_task. Is it "employee number" field in "Assigned to" that's needed?

find_real_file.png

Hi Hitoshi,

Thanks for replying. Employee id is a variable in sc_task  .PFA the screenshot for your reference. For now I am not able to dotwalkin to variables of sc_task in flow designer using inline script f(x).I also added a lookup step for task after my catalog task creation. But no luck.

find_real_file.png

 

My bad. Looking at the screenshot, "Employee ID" seems to be a variable in a custom form instead of a field in the sc_task table.

Use "Get Catalog Variables" action to get fields in the form.

Thanks my issue got resolved. After create task i need add two  more steps  prior to mapping of employee Id of sys_user table.one to lookup catalog and other one" get catalog  variables"

find_real_file.png