Trying to get current sharepoint user info - InfoPath Dev
in

InfoPath Dev

Trying to get current sharepoint user info

Last post 12-02-2008 10:17 PM by Shiva. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 11-15-2006 08:21 AM

    Trying to get current sharepoint user info

    I am trying to use the how to article

    http://www.infopathdev.com/howto/tutorials/default.aspx?i=06d94826ac7a46a09a0f68238c2e0769

    so that I can get the current user info from sharepoint, but I am getting a SOAP exception error message when I use the GetList web service.

    The instructions say:
    Set Sample value as form library name that you just created and click on next.

    Do I need to specify the entire form library path in the sample value field?



  • 11-15-2006 09:48 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Trying to get current sharepoint user info

    Hi lmarkelon,

    You need to set the sharepoint library name only. No need to specify complete path of that library.
  • 11-17-2006 04:36 PM In reply to

    Re: Trying to get current sharepoint user info

    I have tried everything but it does not recognize any value that I enter... I am using infopath 2003 but sharepoint 2007. Do you think this is causing the problem?
  • 12-02-2008 10:17 PM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Trying to get current sharepoint user info

    Hello,

    Here is the code you need to set the values for SharePoint 2007,

    XDocument.GetDOM("GetListItems").selectSingleNode("/dfs:myFields/dfs:queryFields/ns5:GetListItems/ns5:listName").text = "BD94111A-E62A-4974-839F-0CEEBE77B297" //Library ID;

    XDocument.GetDOM("GetListItems").selectSingleNode("/dfs:myFields/dfs:queryFields/ns5:GetListItems/ns5:viewName").text = "C9A0250C-90FB-4629-8F9E-061E3C5D4BA9";//ViewGuid

    For quere node you have to set promoted property name

    fileQueryNode.selectSingleNode("Where/Eq/FieldRef/@Name").text = "xd__x007b_3C2F9DDC_x002d_834A_x002d_4FB9_x002d_94DB_x002d_6AB50EE2D6EB_x007d_"//PromotedPropertyName

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