Hi,
I'm trying to automatically set the “Price Freeze” flag on a customer order line to “Frozen” via BPA, but without positive result.
My Workflow is very simple, I just have an IFS API script with code execution.setVariable('PriceFreeze','Frozen').
I tried to use several call type triggers combined with CustomerOrderHandling projection, with no result.
At first I tried calling Workflow on CustomerOrderLine_Default, with the execution parameters: type- Process Enrichment, timing- After.
The response was correct, but during process enrichment an ETag is added so that the record is not handled as new by the page (for example, there is no way to enter an item number).
I then tried calling Workflow on CalculateAndFetchSalesLineTotalWithHeaderParams, also with the execution parameters: type- Process Enrichment, timing- After. Unfortunately, the value “PriceFreze” was returned as “Free” because this variable from the record is not accessible from the Workflow execution, but is passed in the background by ValidationRec with a reference to com.ifsworld.fnd.storage.model.DBStructure@variableID.
So, in order to achieve the expected effect, I see two possibilities-not sending the ETag when loading the default data, or accessing the data in ValidationRec and changing it. Are either of these suggestions feasible? Maybe you have another solution?