Update table with a loop in a Process Model

Hello all - 

I have a process model, where the first task is to call the database for a view (image1).

This view has a unique column that is saved to a CDT with other columns (roleid and rest of columns).

I save the output of the query database results to an array variable that has the view CDT.

My next task would be to iterate through the array variable to update the table that matches the roleid.

How can I loop through each array with roleid from the variable and match it to the table roleid? I don't think using a Query Database with the following is correct as the variable propert doesn't seem accessible.

Thank you for your help.

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to here2learn
    I should use a Script Task, then in the Data Panel on Inputs, use my CDT and then on the Data Panel on the Outputs

    No.  Ignore the "input" tab.  On the "output" tab add a Custom Output item and place your call to your Query Entity (preferably expression rule) in the Expression box, and set the Target to your CDT.  This would handle the Querying portion for what you're trying to accomplish.

    Then in a subsequent node, you can loop over the query results and do whatever transformation you want to them.

Children
No Data