23 Trigger 1 by Satish Myla sir

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 มี.ค. 2021

ความคิดเห็น • 7

  • @StudyWithAnupam
    @StudyWithAnupam ปีที่แล้ว +8

    You are enlightening us, what a teacher and what a work....although I never met... You we all miss you. By God's Grace Let your soul be in peace and love.

  • @pankajbhatia5639
    @pankajbhatia5639 2 ปีที่แล้ว

    Can we get complete videos ?i guess some videos are missing

  • @naveenadapa1325
    @naveenadapa1325 2 ปีที่แล้ว

    I miss you sir...

  • @nagaharikayala8240
    @nagaharikayala8240 2 ปีที่แล้ว

    Any one write the quare

  • @himansshhh
    @himansshhh ปีที่แล้ว

    Does anyone know the solution for last assignment, please share.

    • @satyagayathri1615
      @satyagayathri1615 ปีที่แล้ว

      trigger LeadTrigger on Lead (before insert,before Update) {
      if(trigger.isBefore && (trigger.isUpdate || trigger.isInsert)){
      for(Lead ld : trigger.new){
      Integer num= [Select count() from Lead Where Email =: ld.Email and Phone =: ld.Phone];
      if(num > 0){
      ld.addError('Duplicate Record found with same Email and Phone');
      }
      }
      }
      }

    • @naidunebarthi3440
      @naidunebarthi3440 ปีที่แล้ว

      @@satyagayathri1615 Try to avoid writing SOQL and DML stmts in loops, its might get over goverlimits if data is huge