2 answers
You can merge the code in the below way:trigger SetContactOnAssetRecord on Assets_Check_in_Checkout__c (before update,before insert, after update, after insert) {//using appropriate conditions if(Trigger.isInsert & trigger.isafter) {// include the logic here } if(Trigger.isupdate & trigger.isafter) {// include the logic here }if(Trigger.isInsert & trigger.isbefore) {// include the logic here } if(Trigger.isupdate & trigger.isbefore) {// include the logic here }}