Turn Off/On all your Salesforce Org's Validation Rules from a single place.

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2025

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

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

    Hey,
    This is a great tip for enabling and disabling SF Validation Rules.
    Now, how do you enable and disable these via Flow trigger?

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

      Hi, in order to enable/disable the custom setting(which will allow/prevent validation rules to fire) we can update the custom setting from apex class(invocable method) and call that class from flow as we cannot update custom settings from flow directly.
      For instance while executing the flow we want to disable all the validation rules so we can invoke an apex class from flow where we will update the custom setting and uncheck the field to false and again enable the custom setting at the end of the flow by calling the same apex class.
      Please find the below video to get more understanding about invocable method:
      th-cam.com/video/joeS4A5FqrU/w-d-xo.html