Generating list from children of 1-many association

0
This is my domain model:     I have an import mapping which maps from JSON to this and I'm calling a REST API to populate the data and finally show on a page, which is all working fine.    Now in my microflow I want to loop over each Conversation object in the response to process some data before displaying and to loop I need a list so I want to put all of the "Conversation" objects in "Conversations" into a list.    I can create a list of Conversation in the microflow but I'm not sure after that how to populate that list? There is a change list function which can add to list but that looks like it can only add one record at a time which would need me to already be in a loop.     I've also tried "Retrieve objects by association" but all this can give me is a single instance of the Conversations object rather than a list of multiple Conversation objects from the 1-many association which I need to loop over.     Any ideas appreciated.
asked
1 answers
2

Brett,

You will need to perform two retrieves:

  • the first is the retrieve of Conversations object (which you have already done).
  • add one more retrieve from Conversations - Conversation via association

The second retrieve will give you a list of Conversation objects.

Hope that helps,

Mike

answered