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 use Sales order Business UnitId in Pricing Engine Algorithm groovy script

Hi Experts,
I’m looking for guidance on the following requirement.
We have implemented a custom Groovy script in a pricing algorithm where we need to retrieve the Sales Order OrgId and pass it to a custom function.
So far, we have enabled the OrgId attribute under Entity: Header in both the Service Mappings Sources and Services tabs.
In the Groovy script, we are checking whether the OrgId value is NULL. Based on this condition, we populate one date if the value is NULL, and another date if it is not.
However, the script is always returning 2500-01-01 00:00:00, which indicates that the OrgId attribute is being returned as NULL.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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