Question on email attachments and sql - InfoPath Dev
in

InfoPath Dev

Question on email attachments and sql

Last post 05-26-2010 05:17 AM by ErnestoM. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-21-2010 01:46 PM

    Question on email attachments and sql

    Hi, I have a form with a data connection to an sql database and I have the form is published to a SharePoint website. When I fill out the form from Sharepoint then submit it, it inserts into the sql database and then I send an email with the attached form. Then I save the form on Sharepoint.   So far everything is good.

    When I open the saved infopath form from Sharepoint and make modifications to it and then submit it again, it UPDATES the sql database.  So far everything still good.

    Here's my problem,  When I open the attached infopath form from the email, and make modifications to it and then submit it, it INSERTS to the sql database.  So now I have duplicate entries of the same form but with a different primary key. 

    My question then, is there some way to modify the infopath form when opening from email, and submit as an UPDATE?

    Thanks

    Flanker 

     

  • 05-26-2010 05:17 AM In reply to

    Re: Question on email attachments and sql

    You could have a hidden field that gets set when the attachment is changed (my:attachmentChange = True). Maybe SQL will then see that this field has changed and therefore UPDATE instead of INSERT.

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.