You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to get data from multiple child models to parent model

Received Response
edited Sep 4, 2023 10:49AM in Configure Price Quote 1 comment


I want to get the data of two attributes at 2 child model level and make it available in the parent model. How do I get the data from the lower child model (for multiple root model system configuration and multiple models under 1 root model configuration ) to the upper child model? I am having difficulty in creating the path

Content (required):

I have the following BOM structure.

Deployment model-

Parent Model- {Attribute3 = Attribute1 + Attribute2;}

Child Model 1 - {This has Attribute1;}

Child Model 2 - {This has Attribute 2;}

I tried the following code in the recommendation rule.

retVal = "";

jsonPaths = dict("string");

put(jsonPaths, "Attribute1","$.children[*].configAttributes.Attribute1"); // just fetching Attribute1 for now

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!