2. Case Study – parameterized calls How do you pass a parameter to Outlook as part of a step of a workflow? Business reasons: passing the cost center for a cross-center expense report. Duet 1.5 solution: anything that is not vanilla for a workflow must be handled via ABAP code. Easier said than done!
3. Outlook 2007 handling Either consume the new parameter and display it as part of the message body of the Duet item Or, better yet, write the body as an XML message, and use Outlook Forms to reformat it The code is pretty ugly as it relies of VSTA without shim You need two assemblies for it to work, and full trust between these Additionally you will need to use WS03 in dev mode in order to debug the application code.
6. Action Items Migrate the message body to XML Trust the outlook form VSTA application and create a publisher-subscriber event from it into the SAP workflow application Set the OnLoad method to hide the UI – call into ShowWindowEx passing the form’s object of the bound item to the Duet pane. Retrieve the message body as XML, and bind it to a control as in the previous picture. Voila, the Outlook Form is displayed using the data from the workflow!