Workflow Soluiton

 View Only
  • 1.  Issue with Multiple Value Mapping component

    Posted Jun 13, 2013 09:54 AM
      |   view attached

    I need to create and insert rows into a table for each element in a collection.  Using the Multiple Value Mapping component I selected the approriate 'Source Array Type' then selected a collection of that type for the 'Create Item For Each' property. 

    When I configured the 'Target Mapping Definition' and expanded the collection name specified in the 'Create Item  For Each' property I can select either the First or Last entry (or the Count property).  I would have expected a selection denoted by an Asterisk.  See the attached document to see the configuration data.

    When I execute the workflow I end up with the correct number of rows in my database table but they contain the data from the first entry in the input collection.

    I can certainly come up with an alternative method for inserting rows into the database table, but I'd like to find out if I am using this component correctly.

    Attachment(s)



  • 2.  RE: Issue with Multiple Value Mapping component
    Best Answer

    Posted Jun 13, 2013 11:07 AM

    At the top of the Tartget Mapping defenitions, you should see (Source) and the name of the source array.

     

    Use those elemts to map your data.

    If you use the actual source array -First, it will go through the total count of the array, but it will always use just the first row.

     

    The (Source) array automatically cycles through all the elements of the source array.

     

    Rob



  • 3.  RE: Issue with Multiple Value Mapping component

    Posted Jun 13, 2013 02:14 PM

    That was the problem.  Thanks for the quick response.