How to save infopath data to SO and execute workflow on save?

  • 11 May 2009
  • 1 reply
  • 0 views

Badge +5

Hi there,


Am new to infopath. How can i save the infopath form data to SO and after saving the data trigger the workflow? Some example code would be quick to understand. Appreciate your help.


Thanks


1 reply

Badge +11

You can do this with no code! 



  • Add a SmartObject to your form using either the InfoPath integration wizard or right-click the XSN and use the SmartObject integratiobn wizard
  • Modify the Submit rule in your InfoPath form to move the data elements from the form to the SmartObject properties and then invoke the Save method before the K2 Submit
  • If you aren't using K2 InfoPath integration, you could make your SmartObject Create method a composite method that also calls the workflow SmartObject's Start method

Reply