When using XPO, you can call the Session.ExecuteSproc method to execute a stored procedure. Use the TransactionalGetObjectSpace activity to obtain an underlying instance of the XPObjectSpace class and then use CodeActivity or InvokeMethod to execute an appropriate method of the Session object. This example demonstrates how to execute a stored procedure in the Workflow Designer and in code.
See also:
how to create object in custom function within workflow
How do I obtain the XafApplication’s IObjectSpace in a class that is not inherited from ViewController
See also:
how to create object in custom function within workflow
How do I obtain the XafApplication’s IObjectSpace in a class that is not inherited from ViewController