Submit to a Form Library and get Item ID, it is possible? - InfoPath Dev
in

InfoPath Dev

Submit to a Form Library and get Item ID, it is possible?

Last post 10-31-2008 06:42 AM by frikouflios. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-29-2008 08:01 AM

    Submit to a Form Library and get Item ID, it is possible?

     Hello to all, i have an issue a couple of days now and i don't know how to solve it..... Well.......  i have a browsable InfoPath 2007 form,  when i  submit this form to a Form Library i want to get the current item id. I tried to  get the max(@ID) from a data connection and it's working  but this isn't very good solution. Any ideas?

     

    thanks for your time.

  • 10-29-2008 09:02 PM In reply to

    • ravig
    • Top 500 Contributor
    • Joined on 06-21-2008
    • Posts 27

    Re: Submit to a Form Library and get Item ID, it is possible?

    Hi,

    The following link will help you.

    http://www.infopathdev.com/blogs/agni/archive/2006/05/15/Query-for-Items-in-SharePoint-Form-Library-Using-GetListItems-Web-Method.aspx
    Ravi G
  • 10-31-2008 06:24 AM In reply to

    Re: Submit to a Form Library and get Item ID, it is possible?

    Hi,

    Follow these steps to get ID from SharePoint list.

    1.First generate a unique file name for every form that you are submitting to SharePoint.
    2.Then get the unique ID generated by SharePoint for each row in SharePoint list. You can get this two ways
      a.Use GetListItems data connection in SharePoint web service
        http://<serverName>/<SiteName>/_vti_bin/lists.asmx
        You have to use file name as query field.
      b.Use SharePoint list data connection. But it returns all rows from SharePoint and  then you have to filter the results based on file name.

    It is better to use GetListItems to improve form performance because it returns the rows based on query field.

  • 10-31-2008 06:42 AM In reply to

    Re: Submit to a Form Library and get Item ID, it is possible?

    i think this is the way.... i will update the post with the result.

     

    thanks

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