I’m using the gform_after_submission hook to send form data to my suiteCRM. However, this hook is synchronous. In other words, the form submission is not complete until this hook actually runs. I’ve had issues with this when my suiteCRM provider has any form of issues.
Is there a hook that’s available for after when everything is all done and we moved to the confirmation?
Or, is there a hook that is asynchronous and can call a callback that way I can run my submission to third party code?
Another approach could be creating your own Gravity Forms add-on to integrate the third-party CRM, using the add-on frame work. This would allow you to setup feeds and use asynchronous processing as the Webhooks does. But obviously this would require advanced coding knowledge and more developing time.
In addition to the webhook add-on which Samuel covers the highlights of very well, you may want to look at Gravity Flow’s outgoing webhook step. It has all the asynchronous benefits of the webhook with some additional:
Response mapping values from the endpoint back to fields in the entry
Ability to have other steps (such as an approval by specific user/role) occur before the webhook. Or define which steps should occur after depending on response code the API provides.
A custom step framework that is equally extensible as it’s built out of the add-on framework. If you were creating many calls to your CRM across multiple forms with common settings (such as authentication) that could be a separate step type extending the outgoing webhook instead of a whole add-on.