How to get the primary ID in a Write to Multiple Data Store Entities Smart Service

Dear all,

In my process model, I am currently using several Write to Data Store Entity smart services (all the CDTs are in the same Data Store) as follows:

1. Write to Data Store Entity (insert into the request table and get the ID from the output)

2. Script Task (Use the output above to set the IDs for request items)

3. Script Task (Again use the output above to set the IDs for approvers list)

4. Write to Data Store Entity (insert into the request items table)

5. Write to Data Store Entity (insert into the approvers list table)

Can someone confirm to me if all the above data operations can be done with a single Write to Multiple Data Store Entities Smart Service?  If the answer is yes, how do I get and set the ID returned from the first operation?

Thanks

  Discussion posts and replies are publicly visible