how to invoke workflows using scripting

Answer Posted / vignesh

PFB the way to invokde the workflow through scripting,

Steps:
var sbs = TheApplication().GetService("Workflow Process
Manager");
var psInputs = TheApplication
().NewPropertySet();
var psOutputs = TheApplication
().NewPropertySet();

var sId = this.GetFieldValue("Id");
psInputs.SetProperty ("ProcessName", "WF
Name");
psInputs.SetProperty ("Object Id", sId);
sbs.InvokeMethod("RunProcess", psInputs,
psOutputs);

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where you involved in the design phase and what did you do?

532


Explain the differences between siebel 7.8 and 8.0?

527


Explain the restrictions in siebel that comes while planning the networking topology.

520


How do you import list of values?

556


Explain how extension table is related to base table?

510






when i click on first time ststic picklist valus should be 4 values and if i click next time i want to see 6 picklist with diff values for that same field.How will u configure

2184


What language you used to write bs?

680


Explain how to assign responsibilities to employees in siebel?

516


What is the difference between eim and eai?

660


What is inbound in picklist?

506


When do we use genbscript.exe?

530


Explain whats the difference between siebel 7.5 and 7.8? If we upgarde the application to 7.8 from 7.5 what are the areas we need to give importance from qa(testing) point of view?

502


what is seibel admin mode view? How to create one?

540


What are the different types of columns?

562


Explain where you will drop the constraints?

544