1

Is there a way to resume a Flow after an @Future Apex method is completed? Right now I have an arbitrary Wait element but that's a hack workaround and not reliable of course.

Cross posted in Salesforce Success Community

2
  • is there any user interaction in flow after the wait? Nov 15, 2018 at 19:35
  • No. It's an autolaunched Flow
    – ddeve
    Nov 15, 2018 at 22:31

1 Answer 1

0

Unfortunately not, the complete terminology of the future methods is that the methods execute asynchronously whenever the resources are available. Which means that it might finish execution in a couple of seconds to even a minute.

As a result, there's nothing that you can do to "resume" the flow. But you can divide the flow in two parts, one that executes before the future method, and the other one that depends on the updates made from the future method. This way both your operations would be performed.

You must log in to answer this question.

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