Boris Yasen
01/24/2024, 9:35 AMfieldChanged()
entry point like this but does not work.
function fieldChanged(scriptContext) {
try {
if(scriptContext.sublistId == "item" && scriptContext.fieldId == "item"){
scriptContext.currentRecord.setCurrentSublistValue({
sublistId: "item",
fieldId: "price",
value: -1
});
})
When I output console, I can see my function runs before other column field changed triggered.
Any help would be appreciated.
Also I tried to else if(scriptContext.sublistId == "item" && scriptContext.fieldId == "rate"){
but somehow this sections runs several timesalien4u
01/24/2024, 11:21 AMpostSourcing
event(entry point) for that, when a line item is selected the fieldChanged
event is triggered (fieldId: item, sublistId: item) but also a postSourcing
event is triggered and that one happens after the fields are populated with sourcing values.