Hi, I have multiple CDTs that have various relationships set up. What I am not clear on is how the ids that would enable the records to relate appropriately are passed from the parent CDT to the child CDT? For example, if an app allows you to create a customer and that customer has many phone numbers, I would have a parent CDT with a one to many relationship with a phone number CDT. When a user enters information into the form, how should the customer key flow into the phone number CDT to allow the relationship to work? Is it expected that this occurs automatically, or would you just program for this where a script task runs in the process model to add the applicable customer id into the applicable phone number rows in the child CDT? (i.e. script task using: repeat(count(pv!childCDT),pv!parentCDT.id)
THANKS!
Discussion posts and replies are publicly visible
Hi.I am facing same issue.can you please explain me how you stored the primary key of first cdt and saved it in the second data store entity.
ankitt
first data store entity just remove save into from input tab and in the output tab stored vales just do data pass back to PV
after that you can use script task in output tab just map first cdt primarky key to second cdt of foreign key .then you can continue with store data to second data store entity