Question

Issue in lineitems when using it with dynamic fields

  • 23 November 2022
  • 1 reply
  • 35 views

I’m adding line items in dynamic fields by setting a parent_key. So the fields in the inputData is dynamic. I don’t know which field is line item here. 

So while making API execution, I’m passing the bundle.inputData as body. 

 

{
"hello": "hello",
"hi": "hello",
"Field_one": "hello,jayanth,paval",
"Field_two": "hi,kaethick,charan",
"Table::Table_One": [
{
"Field_one": "hello",
"Field_two": "hi"
},
{
"Field_one": "jayanth",
"Field_two": "kaethick"
},
{
"Field_one": "paval",
"Field_two": "charan"
}
],
"check": [
{
"hello": "hello",
"hi": "hello"
}
]
}

 

 

check out the above payload, here the Field_one and Field_two are having aggregated values from lineitem
can someone help me out on this. 


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 6
Badge +8

Hi Jayanth!

Can you give me a little more detail about the problem you’re facing?

In the payload you’re showing, is that what the inputData currently is or what you want it to be? If it’s what it is, what do you want it to be? 

Thanks!