How to invoke Workflow through eScript in Siebel

Below is the Script for Calling Workflow:

if (MethodName == "Method Name")
{
var oBS=TheApplication().GetService("Workflow Process Manager");
var Inp=TheApplication().NewPropertySet();
var Out=TheApplication().NewPropertySet();
Inp.SetProperty("Object Id",TheApplication().ActiveBusObject().GetBusComp("Business Component Name").GetFieldValue("Id"));
Inp.SetProperty("ProcessName","Workflow Name");
oBS.InvokeMethod("RunProcess",Inp,Out);
return (CancelOperation);

  }
← Back to Home

Comments

Post a Comment