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.
0