Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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 populate price in line level custom attribute through pricing engine

edited Aug 4, 2020 6:04AM in Configure Price Quote 2 comments

Summary

how to populate price in line level custom attribute through pricing engine

Content

Dear All,
We are trying to populate price in a custom attribute rather than unit price or listPrice.
we are unable to pass the price in the custom attribute.
please check this piece of code where afterDFRPrice_l is custom attribute

n_CPLPrice = 5000;
returnPayload=json(); 
calculationInfoPayload = json();                  // Add the pricing components to the calculation json.
jsonput(calculationInfoPayload,"listPrice",n_CPLPrice ); // Add the list price to the calculationInfo json.
//jsonput(calculationInfoPayload,"afterDFRPrice_l",n_CPLPrice ); // Add the list price to the calculationInfo json.
//jsonput(returnPayload, "unitPrice", n_CPLPrice );

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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