0

is there a chance to fire apex class which has only error message in visual flow ? When I click the button I would like to get error message like "Please provide value on ABC field". Button has a link to fire a flow.

3
  • Whats your use-case? and is this screen flow you are working on?
    – Mahmood
    Commented Mar 9, 2020 at 13:52
  • No, I would like to achieve that when I click the button, error message should appear but this error message should be exist in apex class. So the button will fire flow and flow contains the class Commented Mar 9, 2020 at 13:55
  • Can you please share your flow using screenshot.
    – Mahmood
    Commented Mar 10, 2020 at 8:59

1 Answer 1

0

You can call an Invocable Apex method from a Screen Flow that will return something to the Flow that can then be presented as an error on a screen element.

Unless there is complex logic evaluating the error message this overkill though.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .