Contact[] ToContact method - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Contact[] ToContact method

Last post 09-30-2010 08:41 AM by dswaving. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 09-30-2010 08:41 AM

    Contact[] ToContact method

    Im using a info path form with the contact selector and enter 2 contacts. The XML from the association data look fine but it only returns the last contact. Is this a know bug or am I doing something wrong

    XML Data

    <my:gpContactSelector xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-09-23T14:50:33">
       <my:Person>
          <my:DisplayName>Vincent Jones</my:DisplayName>
          <my:AccountId>SEACATDEV\vincent.jones</my:AccountId>
          <my:AccountType>User</my:AccountType>
       </my:Person>
       <my:Person>
          <my:DisplayName>Dennis Smith</my:DisplayName>
          <my:AccountId>SEACATDEV\dennis.smith</my:AccountId>
          <my:AccountType>User</my:AccountType>
       </my:Person>
    </my:gpContactSelector>

     

    Contact [] contact1 =  Contact.ToContacts(ht["Contact1"].ToString(), workflowProperties.Web);

    contact1
    {Microsoft.Office.Workflow.Utility.Contact[1]}
        [0]: {Dennis Smith}

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