Can I used qRules to SubmitToDbxl, retrieve the SQL table record identity value (auto-numbered ID), and then write the form data along with the identity value with SubmitToSharePointList? - InfoPath Dev
in

InfoPath Dev

Can I used qRules to SubmitToDbxl, retrieve the SQL table record identity value (auto-numbered ID), and then write the form data along with the identity value with SubmitToSharePointList?

Last post 08-03-2012 06:19 AM by ErnestoM. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-02-2012 01:52 PM

    • DC Forms
    • Top 150 Contributor
      Male
    • Joined on 06-14-2012
    • Washington, DC
    • Posts 76

    Can I used qRules to SubmitToDbxl, retrieve the SQL table record identity value (auto-numbered ID), and then write the form data along with the identity value with SubmitToSharePointList?

    Background: The project I am working on will be using InfoPath forms to allow users to enter data into forms which will submit data to a SQL Server database for reporting purposes and simultaneously submit the same data to SharePoint lists to make use of SharePoint features such as generating MS Word documents, search, version control, etc. The database and lists are for the exclusive use of this project.

     

    For the purposes of data integrity I would like SQL Server to generate the record identity values when InfoPath submits the data via DBXL to a SQL Server database. However, I also need to write the form data to a SharePoint list along with the identity value with the form submission. Can I used qRules to SubmitToDbxl, retrieve the SQL table record identity value (auto-numbered ID), and then write the form data along with the identity value with SubmitToSharePointList?

     

    I’d like to SubmitToDbxl, somehow query the database for the identity value, then SubmitToSharePointList. This is because I have a workflow on the SharePoint list that takes the record entry and generates a MS Word document that includes the identity value (ID) along with the other information.

    Regards,

    Darian.

  • 08-03-2012 06:19 AM In reply to

    Re: Can I used qRules to SubmitToDbxl, retrieve the SQL table record identity value (auto-numbered ID), and then write the form data along with the identity value with SubmitToSharePointList?

    Hi-

    This tutorial doesn't use SubmitToDbxl, but it allows to submit and then immediately obtain the DocID.

    http://www.infopathdev.com/files/folders/other_subjects/entry69310.aspx

    The steps use QueryDocumentNodeSet to obtain the DocID, but similar steps would be used to call QueryDB instead and obtain a value from the database.

    Hope this helps!

    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.