Salesforce Interview questions and answers | Part 40

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.ค. 2024
  • Find the Most asked interview questions for 3+ years experience in salesforce.
    Find more content on salesforce by subscribing to our channel

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

  • @vindhyasravan8256
    @vindhyasravan8256 2 หลายเดือนก่อน +1

    Great job 👏 thanks for sharing

  • @gopisfdc1383
    @gopisfdc1383 2 หลายเดือนก่อน

    Really this content is very helpful 😊

  • @Learner830
    @Learner830 2 หลายเดือนก่อน +1

    Thank You👍

  • @tarseelkazmi6682
    @tarseelkazmi6682 2 หลายเดือนก่อน +1

    nice effort buddy

  • @pranaygarimella6335
    @pranaygarimella6335 19 วันที่ผ่านมา +1

    How did you know about the RaisePlatformEvents interface? Do you follow release notes regularly? If yes, any resources that you can suggest?

    • @salesforcein5minutes
      @salesforcein5minutes  18 วันที่ผ่านมา

      I actually keep on reading documents alot, and thats where i came to know about them, ill keep updating on this channel as soon as i find something

  • @kishorey7335
    @kishorey7335 2 หลายเดือนก่อน +1

    Hi,
    by using trigger we can stop the prevention of Parent record if it's having child records. please correct me if it is wrong
    public class preventhandler {

    public static void doprevent(list newlist){
    set accId=new set();
    list oplist=[select Id,AccountId from Opportunity];
    for(Opportunity op:oplist){
    accId.add(op.AccountId);
    }
    for(Account a:newlist){
    if(accId.contains(a.Id)){
    a.addError('You cant delete');
    }
    }

    }
    }
    trigger preventTrigger on Account (before delete) {
    if(trigger.isBefore && trigger.isDelete){
    preventhandler.doprevent(trigger.old);
    }
    }

    • @salesforcein5minutes
      @salesforcein5minutes  2 หลายเดือนก่อน

      Hey hii, actually any kind of cascading delete does not triggers the trigger at all, this means if u have m-d relation and if you delete parent and it delets child then in that case it wont execute the trigger of child at all