+ Start a Discussion
jha.pk5@cloud.comjha.pk5@cloud.com 

Urgent :Can anybody tell

How to print the values using trigger.new

Navatar_DbSupNavatar_DbSup

Hi,

 

For your requirement you can make use of system.debug().

 

See the below code snippet as reference

trigger printvalues on Contact (after insert)

{

  for(Contact con: trigger.new)

    {

            system.debug('________contact on trigger new is=_____________'+con);

    }

   

}

 

you can see it's result in Debug log (Administration Setup -> Monitoring ->Debug Logs).

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.