Skip to main content

Maybe a little technical but 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.

4 件のコメント
  1. 2018年11月15日 19:52
    @Darrell DeVeaux

    +1

    @Gorav Seth

    's solution. We have implemented an @future method called through an Invocable Method. The @future method creates a response object record that we "wait" for and then continue processing. It is useful because the @future response is bringing back information that we need. This won't work too well in a screen Flow, though...

    From a reliability standpoint, we have a loop counter in the Wait/Record Check loop to terminate and create a Flow Log record if the anticipated response record is not created in a reasonable period (three wait cycles for us)

0/9000