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

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

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.