Getting destination users from process xmlfield

  • 10 March 2009
  • 3 replies
  • 1 view

Badge +7

Hello,


I try to use multiple user destination over a process xmlfield (for an InfoPath Client Event).


1. I add a xmlfield "Reviewers" with following initial value:
<Reviewers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Account>K2:MD-MANxxx</Account>
  <Account>K2.MD-MANyyy</Account>
</Reviewers>


based on xsd:
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">


 <xsd:element name="Reviewers">
  <xsd:complexType>
   <xsd:sequence>
    <xsd:element ref="Account" maxOccurs="unbounded" />
   </xsd:sequence>
     </xsd:complexType>
 </xsd:element>
 
 <xsd:element name="Account" type="xsd:string" />
</xsd:schema>


2. In the Object Browser I get something like this:
Reviewers
   Reviewers
      Account


3. In the destination Rule I browse to "Account" and add this


But if I run the workflow the destination users seems to be empty. What do I wrong?
Can anybody help me?


Thanks


3 replies

Badge +7
I try now to add "Reviewers" to the destination Rule than I get the string "K2:MD-MANxxxK2:MD-MANyyy" as the new destination and not two destinations.
Badge +7

I'm unsure why - but now it works - I guess I made an error in the xml schema file.


The best way is to let Visual Studio create this file. I wrote down a two pager "How to use XML as destination set".


So everybody can use my experience.

Badge +9

Any chance you're still around and can help me?  I followed the instructions in your document and I'm generating errors that my destination is blank.  I know the XML is populating by looking at the Process XML Data Report (like you have), but for some reason putting "account" in the destination set as you have seems to be passing blank.

Reply