Skip to main content

What is Salesforce Trigger

Salesforce Trigger:-

Salesforce trigger is apex code that executes before or after the folowing types of operations.
  • insert    -  You can have this trigger run  before or after objects records are inserted into database.
  • update  -  You can have this trigger run  before or after objects records are updated into database.
  • delete   -  You can have this trigger run  before or after objects records are deleted from  database.
  • merge   -  Merge events do not fire their own trigger events. Instead, they fire delete and update event
  • upsert   -  Fire both before and after insert or before and after update triggers as  appropriate
  • undelete- record is restored from the Recycle Bin 


I will be explaining each trigger with example in next tutorial.

Comments

Popular posts from this blog

How To Kill Tomcat HTTP Stuck Thread

Stuck Thread Problem: In one of our application we were facing issue of stuck thread ,it can not complete current work and also not able to accept new work. Once thread is stuck,CPU utilization starts increasing slowly, as stucked thread is utilizing more CPU, other threads start performing slowly makes the environment slow for users  and at some point it brings your server down. Restarting server in business hours is not good for anyone ,and it creates the bad impression of IT department to business. Identify Stuck Threads: To identify which are stuck threads ,you can use jconsole and  topthreads plugin.once you identified the top http threads which are consuming more memory you can kill stuck threads using below solution. Stuck Thread Solution: so we have implemented below solution for stuck thread which we found on web. in java you can create jsp with below code and call jsp using URL something like this- http://servername:port/context/jspname.jsp?threadName=h

How to create dynamic table in email body - Dell Boomi

1-Create xml profile as shown below. 2-If there is chance that few elements/rows may or may not have values then provide default empty space so all columns will be maintained properly. 3-You can also provide width ,color etc as shown in profile. 4-You need to provide Header label as default value as per requirement.

Read PDF in Boomi

If you need to read pdf from Boomi Atom installation path,then use code something like this in map function. byte[] filebytes = new File('\\\\'+path+'\\'+filename+'.pdf').readBytes() String strEncoded= filebytes.encodeBase64().toString() name = filename+".pdf"; fileContent= strEncoded; fileContent stores the encoded base 64 data.