Document Unique ID - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Document Unique ID

Last post 05-07-2007 07:02 PM by potpourri. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 01-31-2006 02:35 AM

    Document Unique ID

    Hello.

    I'm looking for a ay to uniquely identify each document in a Form Library (filled throught InfoPath forms). I'm not looking for the document name (because this one has to be saved weith the unique id !), but really a (computed) number which won't be reused within my library !

    I have a look to the InfoPath DOM structure, but I think I'm looking to the wrong place, as InfoPath returns only information coming from SharePoint... I look to the XDocument.Solution and XDocument.DOM structure, but nothing about what I am looking for !

    So that, is there a way to make this, or should I write some code for this ?
    Many thanks.

    Michael
  • 01-31-2006 07:12 AM In reply to

    Hi,
    Every form submitted to sharepoint will have unique id generated by sharepoint.
    you can get this id using Lists.asmx webservice available in the sharepoint.

    I Hope this will help you.

    K.Ramana Reddy
    Infopath Dev India
    K.Ramana Reddy / http://www.ggktech.com
    India.
  • 01-31-2006 08:32 AM In reply to

    Hum...
    Yes and no !

    It will surrely helps once I know how to access webservices ! I saw a little bit how to access webservices to populate listboxes... but without success !

    Is it the same method ?

    Meanwhile, many thanks for your help... I have to investigate so many things starting development with SharePoint and InfoPath !

    Many thanks.
  • 02-02-2006 01:46 AM In reply to

    • Gege
    • Not Ranked
    • Joined on 02-02-2006
    • Posts 2
    Hi,

    Which service should i call to have this unique ID ?
    Here's the complete list for this webservice:
    AddAttachment
    UpdateList
    DeleteList
    UpdateListItems
    GetAttachmentCollection
    AddList
    GetListItemChanges
    GetListAndView
    GetList
    GetListCollection
    GetListItems
    DeleteAttachment

    Thanks
  • 02-02-2006 08:12 PM In reply to

    • jimbob
    • Top 500 Contributor
    • Joined on 11-26-2004
    • USA
    • Posts 32
    GetListItems will give you the sharepoint ID.

    Jim Cantwell
    InfoPathDev - Redmond
    Jim Cantwell
    InfoPathDev - Redmond
  • 02-07-2006 01:22 AM In reply to

    • Gege
    • Not Ranked
    • Joined on 02-02-2006
    • Posts 2
    Can you give me an example of code?

    Thanks
  • 02-07-2006 12:40 PM In reply to

    I recommend you download a web service tool like Webservice Studio 2.0
    http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=65a1d4ea-0f7a-41bd-8494-e916ebc4159c

    Then point it at the area/site where your list is situated:
    http://yourportal/yourarea/_vti_bin/lists.asmx

    Then try and call GetListItems and other to get a feeling for the XML you send and the XML you retrieve (be aware that some of the methods require knowledge about CAML -an xml query language).

    Also check the answer i just gave in this thread:
    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1664#5065

    hth
    //AndersR

    //AndersR
  • 05-07-2007 07:02 PM In reply to

    Hi AndersR,

    I've downloaded the Webservice Studio 2.0 as you instructed and pointed it out to my lists.asmx site.

    But I'm still vague on how to use the GetListItems method to obtain the unique ID created by the sharepoint when we submit a form to the sharepoint.

    Can you give me pointers here AndersR?

     

     Thank you so much,

    potpourri
     

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