...
Call this script from a workflow transition post-function . It will to set the approver based on the value of a custom field.
Info |
---|
The keyword “fruit” in the script below represents a A SIL alias which is the best practice for access accessing custom field data. See Custom Fields Aliases. In the script below, the SIL alias is represented by the keyword “fruit.” For more information, refer to the custom fields aliases documentation. |
Code Block |
---|
if(fruit == "Apple") { customfield_10700 = "jmuse"; } else if(fruit == "Orange") { customfield_10700 = "efoulkes"; } else if(fruit == "Peach") { customfield_10700 = "jwang"; } |