Invoke a Business Service from a Calculated Field

To invoke a Business Service from Calculated field put the following in the Calculated Value attribute
InvokeServiceMethod("BusServName","MethodName","InputPropertyName=InputPropertyValue","OutputPropertyName")

eg: InvokeServiceMethod("Workflow Process Manager","RunProcess","ProcessName=CountChildWF",”Count")

The above example invokes RunProcess method of Workflow Process Manager Business Service with Input as ProcessName and output as Count. Now in this example we would also need to pass the Id of the record. To pass field values as input we need to use eval().

eg: InvokeServiceMethod("Workflow Process Manager","RunProcess",”RowId=eval([Id])”,"ProcessName=CountChildWF",”Count")

Note: Do not use this feature in a List Applet, It could lead to performance issues as the Business Service would be triggered Multiple times.

Use the above trick and you would have Zapped your Siebel!

No comments:

Post a Comment