ByPass Salesforce Validation Rules Using Custom Settings

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ธ.ค. 2024

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

  • @pratikshajadhav2579
    @pratikshajadhav2579 4 ปีที่แล้ว +1

    THANK-YOU!!! It was a really helpful video but it would have been better with audio

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

    Thank you

  • @NGarcia
    @NGarcia 4 ปีที่แล้ว

    Do you have video on the other way to do this, that is using Permission Set's and Custom Permission it is an even better way because is deployable. What do you think?

  • @Danny-oo4df
    @Danny-oo4df ปีที่แล้ว

    How to use list custome settings in validation rules/application?

  • @harshvardhanagrawal
    @harshvardhanagrawal 5 ปีที่แล้ว +1

    For this functionality why would we make a custom setting, we can simply write the condition in validation rule Condition Formula, something like "when profile not equal to system admin". This will only fire the rule when profile is not system admin. Similarly we can add users in the code I guess.

    • @SFDCLearnShare
      @SFDCLearnShare  5 ปีที่แล้ว +1

      Yes, but this scenarios bypass from custom settings as per the logged in user/profile, since custom settings created as "Hierarchy" based, so thats means we no need to specify the profile name/user name into your validation rule and this automatically take care if you mention custom settings details into your validation rule.
      FYI - Custom settings contain two types (1. List & 2. Hierarchy)

    • @funklion
      @funklion 3 ปีที่แล้ว

      Using the custom setting is far more scalable. Let's say multiple profiles and individual users all need different combinations of bypassing validation. In this scenario it's 1 line to reference the custom setting vs many to hard code user ids, etc.
      Secondly, you can change the behavior of multiple validation rules without having to go and edit those rules. Let's say a user moves into a role where they can bypass all opportunity validation rules-- you'd just add a row in the custom setting for them. Custom settings use the most specific row matching the user.
      Lastly, you could extend this functionality other places, like workflow rule, process builder, flow, or even apex triggers, using settings to turn them on or off or modify their behavior.

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

      @@funklion how to do it for the automation tools and triggers.

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

      @@prashantmohadikar7310 same, flow, formula, validation, apex can all referent custom settings

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

    gunga hai kya?