Use a Toggle and Flow to Escape Validation Rules | How I Solved This

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

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

  • @salesforcegio6003
    @salesforcegio6003 3 หลายเดือนก่อน

    Thanks for sharing. I was having trouble with a flow when trying to update a record that has a validation rule in it. I was able to implement this in my org, and it also works when getting a collection in the Get Records, it just needs some adjustments, but it works!

  • @kevinscully5056
    @kevinscully5056 3 หลายเดือนก่อน

    Simple but clever. Thank you.

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

    Amazing! Thanks for the solution!

  • @ashwathdeshpandem544
    @ashwathdeshpandem544 2 ปีที่แล้ว +4

    Nice idea, if a flow needs to deactivated temporarily at org level or for specific profile/user, we can use hierarchy based custom setting in a formula like toggle

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

    Amazing simple magic.Thanks a lot

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

    In terms of order of execution, shouldn't this be a problem? Since validation rules are executed before flows, shoildnt the validation rule still throw the error?

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

      I don't think so, because at the time the Validation rule runs, the flow updating the related record hasn't made any changes yet. This is my understanding of the events
      A new Camp Activity is created and saved -> Validation rules will fire, but no changes have been made to a Camper Credit yet -> the flow will run, and update the related Camper credit record -> Validation rules will fire for the Camper Credit record, but will not give an error because of the toggle.

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

    How to execute validation rule instead of bypassing it before flow execution?

  • @dhruveshsingh67
    @dhruveshsingh67 2 ปีที่แล้ว +2

    My favorite😍salesforce

  • @LorenzoAlali
    @LorenzoAlali 2 ปีที่แล้ว +3

    Creative hack, thanks for sharing!

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

    Thank youuu😍

  • @trekvdm
    @trekvdm 2 ปีที่แล้ว +3

    I would have recommended using Session based permission set.

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

      Why?

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

      Session based permission set is cool, but how do you get around mixed dml? Once you activate the permission that's a setup change, so you're stuck.

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

      @@cadillacben a lot more work you have received your

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

      @@cadillacben a lot more work you have received your

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

      @@cadillacben l