You need to sign in to do that
Don't have an account?
vanessa
system.out in a trigger
Hy. I'm new on Triggers and apex.
I want to know if i can use system.out.println to do this (part of my code) or on trigger i can't make it out a different message that the system message
if(pr.preco__c != 0){
o.UnitPrice = pr.preco__c;}
else {
System.out.println("O Produto não tem preço de referência carregado!:" + p.Description );
}
}
Can help me please? thanks
No you cant do that on that on Apex. Why are you trying to do that?
this is my code:
this code update Unit Price of OpportunityLineItem with the price of Precos_de_referencia.
when failed, the SF return a message than the user doesnt understand, then i want to make it out a other message when preco is null