How to fire off notifications in 'gform_after_submission'


In my gform_after_submission hook I am sending data to a 3rd party, and once that has been processed it sends data back (including a case numbrer). However, since gform_after_submission is the last hook to fire, I can not append that to the notification.

Is there any way to delay and manually fire off emails at the end of gform_after_submission?

What you could do is add a custom notification event via the gform_notification_events filter which can be selected when configuring the notification:

That will prevent the notification being sent during submission until you trigger it via your function hooked to gform_after_submission using the GFAPI: