Description
The gform_salesforce_post_request action fires after a request is made to the Salesforce API. This allows developers to perform custom logic after a Salesforce feed is processed.
Usage
add_action( 'gform_salesforce_post_request', 'my_custom_function'), 10, 6 );
Parameters
| Name | Type | Description |
|---|---|---|
| $response | array|WP_Error | The response from the Salesforce API. |
| $request_url | string | The URL of the request made to Salesforce. |
| $request_args | array | The arguments used in the request. |
| $entry | array | The entry currently being processed. |
| $form | array | The form currently being processed. |
| $feed | array | The feed currently being processed. |
Examples
add_action( 'gform_salesforce_post_request', 'my_custom_function', 10, 6 );
function my_custom_function( $response, $request_url, $request_args, $entry, $form, $feed ) {
// Custom logic here
}
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Source Code
This action is located in class-gf-salesforce.php.
Since
This action was added in Gravity Forms Salesforce Add-On 1.0.