How to copy page specific data to Sub case using Data Propagation
Hi,
I want to create multiple child cases based on page list that is defined in ParentCase class and that points to product data class.The goal is to copy a set of product data from parent to child when child cases are instantiated. I want to do this using Data Propagation, instead of Data Transform in a create case shape.
Class structure:
MyCo-MyApp-Work-ParentCase
- ProductList (MyCo-MyApp-Data-Product) => Page List property
MyCo-MyApp-Work-ChildCase
- ProductID => Text property
- ProductName => Text property
MyCo-MyApp-Data-Product
- ID => Text property
- Name => Text property
For example if I have below data populated in ProductList in parent case:
<P-1>
ProductList:
ID | Name | |
---|---|---|
1 | 004 | Pencil |
2 | 009 | Eraser |
Then I want to have two cases with below data when instantiated:
<C-1>
ProductID: 004
ProductName: Pencil
<C-2>
ProductID: 009
ProductName: Eraser
Hi,
I want to create multiple child cases based on page list that is defined in ParentCase class and that points to product data class.The goal is to copy a set of product data from parent to child when child cases are instantiated. I want to do this using Data Propagation, instead of Data Transform in a create case shape.
Class structure:
MyCo-MyApp-Work-ParentCase
- ProductList (MyCo-MyApp-Data-Product) => Page List property
MyCo-MyApp-Work-ChildCase
- ProductID => Text property
- ProductName => Text property
MyCo-MyApp-Data-Product
- ID => Text property
- Name => Text property
For example if I have below data populated in ProductList in parent case:
<P-1>
ProductList:
ID | Name | |
---|---|---|
1 | 004 | Pencil |
2 | 009 | Eraser |
Then I want to have two cases with below data when instantiated:
<C-1>
ProductID: 004
ProductName: Pencil
<C-2>
ProductID: 009
ProductName: Eraser
I am trying to do this by using Data Propagation but it is not working. To map fixed property to fixed property works fine but I am unable to figure out how to set dynamically individual data in each page list to child case.
I would like to do something like .ProductList(<CURRENT>).ID to .ID if possible.
Obviously I can't use <CURRENT> keyword here. How can I do this?
Thanks,
***Edited by Moderator Marissa to update Platform Capability tags****