SAP Open Connectors supports events via polling or webhooks depending on the API provider. For more information about our Events framework, see Events Overview.
Supported Events and Resources
SAP Open Connectors supports polling events for NetSuite Finance. After receiving an event, SAP Open Connectors standardizes the payload and sends an event to the configured callback URL of your authenticated connector instance.
You can set up polling for the events
resource. You can also copy the events
configuration to poll other resources. See Configure Polling Through API for more information.
Configure Polling Through the UI
To configure polling through the UI, follow the same steps to authenticate a connector instance, and then turn on events. Select the resources to poll, and then click Create Instance. For more information, see Authenticate an Connector Instance with Events (UI) or the connector-specific authentication topic.
Configure Polling Through API
To authenticate a connector instance with polling, sign in to SAP Open Connectors, and then create a new connector instance as described in the Authenticate section When using the API, there are additional parameters used to enable and configure polling events on the new instance.
Example JSON with Polling
This example JSON shows the parameters that can be sent to the /instances
API to enable and configure polling. The example shows configuration of polling for Customers
objects, but you can set whichever types of objects that you wish.
{
"element": {
"key": "netsuitefinancev2"
},
"configuration": {
"netsuite.sandbox": false,
"netsuite.single.session": true,
"filter.response.nulls": true,
"event.notification.enabled": true,
"event.poller.refresh_interval": "15",
"event.poller.configuration": {
"customers": {
"url": "/hubs/finance/customers?where=lastModifiedDate>'${gmtDate:yyyy-MM-dd'T'HH:mm:ssXXX}'",
"idField": "internalId",
"filterByUpdatedDate": true,
"datesConfiguration": {
"updatedDateField": "lastModifiedDate",
"updatedDateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"createdDateField": "dateCreated",
"createdDateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX"
}
}
}
},
"event.vendor.type": "polling",
"authentication.type": "basic",
"user.username": "my_username",
"user.password": "my_secret_password",
"netsuite.accountId": "xxxxxxxxxxxxx",
"netsuite.appId": "XXXXXXXXXXXXX",
"tags": [
"Testing"
],
"name": "NetSuite Polling"
}
Parameters
Parameter | Description | Data Type |
---|---|---|
Events Enabledevent.notification.enabled | Optional. Identifies that events are enabled for the connector instance. Default: false . | boolean |
Event Notification Callback URLevent.notification.callback.url | The URL where you want SAP Open Connectors to send the events. | string |
Event Poller Refresh Intervalevent.poller.refresh_interval | A number in minutes to identify how often the poller should check for changes. | number |
Configure Pollingevent.poller.configuration | Optional. Configuration parameters for polling. | JSON object |
<object_type> | One or more JSON objects that correspond to configuration for that type. object_type can be customers , invoices , etc. | JSON object |
url | The url to query for updates to the resource. | String |
idField | The field in the resource that is used to uniquely identify it. | String |
datesConfiguration | Configuration parameters for dates in polling | JSON Object. |
updatedDateField | The field that identifies an updated object. | String |
updatedDateFormat | The date format of the field that identifies an updated object. | String |
createdDateField | The field that identifies a created object. | String |
createdDateFormat | The date format of the field that identifies a created object. | String |