I created a trigger that should do some calculation with sale amount and a userdefined field (decimal).
EventData ed = getEventData();
String saleid = ed.getInputValue("SaleEntity.SaleId");
Float saleAmountFloat = saleAmount.toFloat();
Float competitorAmountFloat = competitorAmount.toFloat();
But when I do some calculation, or just put competitorAmountFloat in a text, the float is empty.
The saleAmountFloat works as expected. It feels that it has something to do with the datatype coming from the UserdefField.
What could be wrong here?
Thankx in advance for any hint in the right direction.