Adapter Polling Notifications
Overview
Adapter for Salesforce facilitates polling of data with Salesforce.com using the adapter polling notification templates. These templates enable a user to specify the sObjects needed to poll Salesforce.com at specified periodic intervals for any changes in the organization's data. This essentially includes creating, updating, and deleting records. The adapter uses the data replication APIs provided by Force.com Web services, getUpdated() and getDeleted(), to implement the polling notification.
Before you configure Adapter for Salesforce polling notifications, you must configure the connections you plan to use with them. See Configuring Adapter Connections for details.
For a description of adapter polling notifications, see Adapter Polling Notifications.
If you are using the adapter in a clustered environment, you will need to configure the polling notifications so that they run effectively. For more information, see Polling Notification Support in Integration Server Clusters.
Before Configuring Adapter Polling Notifications
About this task
Before you configure a Adapter for Salesforce polling notification
Procedure
What to do next
Configuring Adapter Polling Notifications
About this task
The polling notification template is designed to work on a single Salesforce object at a time. The object must be replicable (that is, the replicateable field for the Object must be set to "true"; for more information, see the Force.com Web Services API Developer's Guide). Adapter for Salesforce defines two polling notification templates, one for capturing any create or update changes and another for any records deleted.
Adapter for Salesforce uses the getUpdated() call to implement Upsert Notifications and getDeleted() call for Delete Notifications. The call takes three input parameters: startDate, endDate and sObject as explained below:
- startDate: The initial start date is calculated by the polling notification based on the day count parameter provided by the user. For subsequent calls, the start date is used as the latestDateCovered from the previous notification.
- endDate: The current date is used as the end date by the polling notification.
- sObject: The object selected by the user during creation of the polling notification.
Creating an Upsert Polling Notification
About this task
An Upsert Notification publishes an output document containing the IDs of the updated sObjects for the given time interval.
To configure an Upsert polling notification
Procedure
Creating a Delete Polling Notification
About this task
A Delete Notification publishes an output document containing the IDs of the deleted sObjects for the given time interval.
To configure a Adapter for Salesforce Delete polling notification
Procedure
What to do next
Managing Polling Notifications
About this task
You must schedule a polling notification and then enable it before you can use the notification. Use Integration Server Administrator along with the following procedures to do so.
To manage polling notifications
Procedure
Exporting Configured Adapter Polling Notifications
About this task
You can export polling notifications from one Integration Server to another Integration Server. You do not need to disable notifications in order to export them. In most cases, the current state of the notifications in the package that you export is retained. However, if you deploy to a different Integration Server and connect to a different database, then you should first disable the notification.
The start date of the polling notification is stored in the shared cache location. When the notifications are exported, if the notification is unable to fetch the start date from the cache, the start date for the first notification will be calculated based on the day count configured for the adapter polling notification. When Integration Server with the exported notifications starts, each configured notification starts to poll the changed data from Salesforce.com.
If you want to export configured polling notifications in a disabled state, you need to disable the notifications before you export the package containing them. To enable or disable a polling notification, see Managing Polling Notifications.
For more information about Insert Notifications, Update Notifications, or Delete Notifications, see Polling Notification Types.
For more information about exporting packages, see the IBM webMethods Integration Server Administrator’s Guide for your release.
Viewing Polling Notifications
About this task
You use Designer to view polling notifications.
To view a polling notification
Procedure
- Review the steps in Before Configuring Adapter Polling Notifications.
- In Designer, expand the package and folder that contain the polling notification you want to view.
- Double-click the notification you want to view.
Results
Editing Polling Notifications
About this task
You use Designer to edit polling notifications.
To edit a polling notification
Procedure
Deleting Polling Notifications
About this task
You use Designer to delete adapter polling notifications.
To delete a polling notification
Procedure
- Review the steps in Before Configuring Adapter Polling Notifications.
- In Designer, expand the package and folder that contain the polling notification you want to delete.
- Right-click the notification and click Delete.
Validating Polling Notification Values
About this task
Designer enables Adapter for Salesforce to validate user-defined data for adapter polling notifications at design time. You can validate the values for a single notification or you can configure Designer to always validate the values for polling notifications. Both options could potentially slow your design-time operations.
When you enable data validation for a single adapter polling notification, Designer compares the notification values against the resource data that has already been fetched from the selected adapter.
If you select the option to always validate values for adapter polling notifications, it will do so for all webMethods WmART-based adapters installed on Integration Server.
For more information about the Adapter Service/Notification Editor, other Designer menu options, and toolbar icons, see the IBM webMethods Service Development Help for your release.
Validating Values for a Single Adapter Service
About this task
To validate adapter polling notification values for a single adapter service
Procedure
Validating Values for All Polling Notifications
About this task
To validate adapter notification values for all polling notifications
Procedure
- Review the steps in Before Configuring Adapter Polling Notifications.
- Start Designer.
- Select the Window > Preferences > webMethods > Service Development > Adapter Service/Notification Editor item.
- Enable the Automatic data validation option.
- Click OK.
Reloading Adapter Values
About this task
Designer enables Adapter for Salesforce to reload and validate user-defined data for polling notifications at design time. You can reload values for a single notification or you can configure Designer to always validate the values for notifications. Both options could potentially slow your design-time operations.
When you reload adapter values for a single polling notification, Designer compares the notification values against the resource data that has already been fetched from the selected adapter.
If you select the option to always reload values for adapter polling notifications, it will do so for all webMethods WmART-based adapters installed on Integration Server.
For more information about the Adapter Service/Notification Editor, other menu options, and toolbar icons, see the IBM webMethods Service Development Help for your release.
Reloading Values for a Single Adapter Polling Notification
About this task
To reload the adapter values for a single adapter polling notification
Procedure
Reloading Values for All Adapter Notifications
About this task
To automatically reload the values for all adapter notifications
Procedure
- Review the steps in Before Configuring Adapter Polling Notifications.
- Start Designer.
- Select the Window > Preferences > webMethods > Service Development > Adapter Service/Notification Editor item.
- Enable the Automatic polling of adapter metadata option.
- Click OK.