Following workflow will extract InfoPath embedded attachments and save it to a given document library in the same site collection. I have created a very simple InfoPath form to demonstrate this.
The below workflow supports extract single attachment or multiple attachments from the same InfoPath form. I am using Title field value to create the folder name. This can change based on the requirement.
Following are the detail configurations of the workflow activities. I think the above flow is self explaining and I don’t need to detail it J
Read title value from InfoPath form:
Check whether there is a folder exists in a give document library with a name equal to title
- If the folder does not exists create the folder in the document library
- Get the path to the destination folder. In other words path the folder created in the above step.
Extract and copy attachments from InfoPath form into folder inside document library
- This step I am writing some debug info into workflow history list.
This is just a quick post, so my explanations are very minimal. If you all have any questions or ideas please leave a comment.