Custom Error Messages in Flow - Winter 24 - Best Hack Ever?

Поделиться
HTML-код
  • Опубликовано: 21 янв 2025

Комментарии • 7

  • @1991ubaid
    @1991ubaid Год назад +1

    When i retrieve this flow from ANT tool and try to deploy in other environment its giving error saying " Error : Invalid element reference not found for target.

    • @SalesforceBreak
      @SalesforceBreak  Год назад

      Your best bet is to ask here: sfxd.github.io/ . Jeff is there most of the time.

  • @MikeAtCirrius
    @MikeAtCirrius 10 месяцев назад +1

    @salesforcebreak Andy - based on this Cautionary Tale of using the Custom Error messages in Flow, do you have any guidance or best practices on how to avoid this issue? Perhaps trying to consolidate any Custom Error messages into a single Flow if used for "validation" purposes? I would appreciate any thoughts you may have on the subject. ~ Thanks!

    • @SalesforceBreak
      @SalesforceBreak  10 месяцев назад +1

      There are several UI pitfalls with this at the moment. Some are: 1) When you use a custom error message on the back of a record change that can be done via a path component, the message appears on top in red and disappears. You cannot control where and how it appears. 2) The messages appear in sequence. Before save, after save, and validation rules don't show up at the same time. I built many fault paths for a client and connected them to the custom error message element. They said they ended up removing all, because they wanted to see the messages by other automations/code/validations, but they could not when this design was active. I heard a few other complaints but I cannot remember all of them. I think in the future we will be able to do all this inside flow rather than inside validation rules, but we are not there yet. For now, it would be best if you could build all such errors into validations before save flows or after save flows for each object. And refrain from building flow custom error validation triggering on stage changes.

    • @MikeAtCirrius
      @MikeAtCirrius 10 месяцев назад +1

      Excellent insight! Thank you for your time@@SalesforceBreak

    • @SalesforceBreak
      @SalesforceBreak  10 месяцев назад +1

      @@MikeAtCirrius Thanks for the inspiration, this will be a blog post soon.

    • @SalesforceBreak
      @SalesforceBreak  9 месяцев назад

      Here it is: salesforcebreak.com/2024/03/27/four-tips-for-leveraging-custom-errors-in-flows/