Hello, I've got two data connections set up in my form. The first submits to an Access DB, and the second e-mails the form. I'd like to submit to both of these connections; however, I also have some code that needs to run on submit. Seems like that precludes using rules for the submit.
Previously, I had only the main connection (no e-mail data connection) set up, and I used XDocument.Submit at the end of my code to perform the submit. If I do that now, with the two data connections, it only submits via the main connection. I could use XDocument.UI.ShowMailItem in my code, but I need control over the name of the attachment. I can get that from the e-mail data connection but not from the ShowMailItem method, if I'm not mistaken.
Is there a way to get at what I'm trying to do? Web services aren't an option for me.