CAN WE ATTACH WORKFLOW TO A ORDER GUIDE ?? IF SO HOW ?

anoopr77
Kilo Explorer

CAN WE ATTACH WORKFLOW TO A ORDER GUIDE ?? IF SO HOW ?

26 REPLIES 26

Carl, it is possible to run an order guide from a script or a workflow. One of these options might be appropriate for you to explore.


I'd suggest that you start with a catalog item instead of a record producer, since you indicated that you need approval before processing. Once approved, the Order Guide could be triggered from the catalog item's workflow.


Running order guides from scripts


Running order guides from workflows


if I'm setting up an order guide from a workflow do I have to have these variables(opened_by, opened_for)? in my order guide?



var parameters = new JSON().decode(current.payload);

// Need to amend the json object to include additional values.
parameters
.opened_by = current.opened_by + "";
parameters
.requested_for = current.opened_for + "";

answer
= new JSON().encode(parameters);