I am trying to use System.log(workflow.version) to print out the workflow version and am getting undefined as a response. I know this is a valid call since its in API explorer. workflod.name and ID work though.
Thank you
Another option is workflow.currentWorkflow.version
Usually rootWorkflow and currentWorkflow are pointing to the same workflow, but may differ if your workflow contains nested workflows.
Try workflow.rootWorkflow.version
Worflow is of type worflowToken, not workflow
Le 14 mai 2014 à 19:24, "atfrys" <communities-emailer@vmware.com<mailto:communities-emailer@vmware.com>> a écrit :
VMware Communities<https://communities.vmware.com/index.jspa>
Printing out the workflow version
created by atfrys<https://communities.vmware.com/people/atfrys> in Orchestrator - View the full discussion<https://communities.vmware.com/message/2380256#2380256>
Another option is workflow.currentWorkflow.version
Usually rootWorkflow and currentWorkflow are pointing to the same workflow, but may differ if your workflow contains nested workflows.
That worked like a champ. How did you come across the .currentworkflow attribute? I am trying to fish for my self in the API explorer.
Thank you