Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Question

I am trying to get quote Quote line item details using api.find("QLI") in a Calculation Flow logic but I am getting a simple quote Quote object such as:

Code Block
{version=0, typedId=47574.QLI, dirty=false, lineId=dQO02lmsmWA8ZZO, calculationStatus=10, editabilityStatus=0, label=2M CLEAR BOPP/FA20B/40#, sku=CLSCLS.COMMON10576, folder=false, treeLabel=2M CLEAR BOPP/FA20B/40#, createDate=2016-12-20T19:54:15, lastUpdateDate=2016-12-20T19:54:18, id=47574}

Is there any other way to get inputs/outputs of the line items in CF please?

...

hiddentrue

...

Answer

api.getCalculableLineItemCollection(String typedId) + getCalculableLineItem(Object clic, String lineId)

CalculableLineItemCollection = Quote (can also be Agreement/Promotion or Rebate Agreement)

Inputs/outputs are lazy-loaded, therefore the above mentioned function exists, I think.