I have a Line Item Group in my Action for which I want to convert them into a Nested Entity for my API through code. To Identify these fields as nested entity, I want the bundle.inputData to structure the line item data as a nested entity. i.e.
"inputData" : {
"line_item_group_key" : {
“CT” : “CV1”
}
}
But after I input the value for the line item in the input form, the data is flattened out and it is present as a normal field.
"inputData" : {
"CT" : "CV1"
}
How Can I Get the line item fields to be grouped under a nested entity in bundle.inputData?
One more thing to note is the Line Item Group is a Dynamic Field so the Keys for these line items are generated on the fly and I can’t identify them as they belong to a nested entity.
Line Item Group Generated Dynamically in Input Form
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/22c635b7-625a-495a-9704-d461e28b07e2.png)
Input Data as shown in “Test and Review” step of Action
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/8b413f48-2a74-48d1-98a2-de977f271c22.png)