Use record context fields in Condition Editor

The Condition Editor does not support using the value of a record context field directly as part of the condition, so you have to manually retrieve the value and put it into a Service Manager variable, and then you can use this variable in Condition Editor.

For example, if you want to use the record context field “employeeType” as part of the condition in the Request workflow, you need to execute the following JavaScript code before your condition is evaluated:

vars[“$L.ticketcontext.license”] = lib.c.$("#taskPlannerService").getTicketContextFieldValue("request", record.number, "employeeType");

Or you can use the JavaScript below in the Request Task workflow:

vars[“$L.ticketcontext.license”] = lib.c.$("#taskPlannerService").getTicketContextFieldValue("request", record.parent_request, "employeeType");

Finally, you can configure the condition to something in the Condition Editor as shown below: