Pega
Sync customer records to a Pega Customer Decision Hub data type via the Pega DX API for real-time decisioning and next-best-action. Zeotap writes each profile from your warehouse into a savable Pega data view, keeping the Customer Analytical Data Model up to date for Pega’s decisioning strategies.
Prerequisites
- A Pega Infinity instance with the DX API (
/api/application/v2) enabled - An OAuth 2.0 Client Registration created in Pega (Client ID and Client Secret)
- A savable data view (data page) that accepts the records you want to write, exposing a Create view that lists every field you map
- Your Pega instance base URL including the
prwebcontext root (e.g.,https://acme.pega.com/prweb)
Permissions
The OAuth 2.0 client’s operator must have sufficient access to:
- Invoke the DX API data endpoints (
POST /api/application/v2/data/{data_view_ID}) - Create and update records in the target data type backing the savable data view
Authentication
Pega uses OAuth 2.0 Client Credentials authentication.
- In Pega Dev Studio, open Records > Security > OAuth 2.0 Client Registration
- Create a client registration with the Client Credentials grant type
- Copy the generated Client ID and Client Secret
- In Zeotap, paste the Client ID into the Client ID field
- Paste the Client Secret into the Client Secret field
- Enter your instance base URL (including
/prweb) in the Instance URL field
Zeotap requests a bearer token from {instance}/PRRestService/oauth2/v1/token and refreshes it transparently before expiry (Pega access tokens default to a 1-hour lifetime).
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
| Instance URL | Text | Yes | Your Pega Infinity base URL including the prweb context root (e.g., https://acme.pega.com/prweb). Both the OAuth token endpoint and the data endpoint are derived from it. |
Target Settings
| Field | Type | Required | Description |
|---|---|---|---|
| Data View ID | Text | Yes | The ID of the target savable data view (data page) that accepts the posted records, e.g., D_CustomerSave. It must expose a Create view listing every mapped field. |
| Primary Key Field | Text | No | The record field that identifies each row (e.g., CustomerID). Used only to label per-row errors; the data view’s save logic determines insert vs. update. |
Supported Operations
Sync Modes
| Mode | Supported |
|---|---|
| Upsert | Yes |
| Insert | Yes |
| Update | Yes |
Audience Sync Modes
| Mode | Supported |
|---|---|
| Add | Yes |
| Upsert | Yes |
Pega’s DX API writes individual records rather than managing list or segment membership, so remove and mirror are not available. Audience add/upsert write (or overwrite) the member’s record in the target data type.
Features
- Field Mapping: Yes
- Schema Introspection: No
Required Mapping Fields
Pega data types vary by instance, so there is no fixed required field. Map the fields that your target data view’s Create view expects. If the data view keys on a primary property (for example CustomerID), include that field so updates resolve to the correct record.
Default Destination Fields
CustomerID, Email, FirstName, LastName, MobilePhone
These are common customer attributes. You can map any field that exists in your target Pega data type’s Create view.
How It Works
Record Writes
- Zeotap reads each row from your model or audience
- Each row is posted individually to
POST {instance}/prweb/api/application/v2/data/{data_view_ID}, wrapped as{"data": { ...fields }} - The savable data view’s save logic decides whether the record is created or updated, based on its keyed property — this is how upsert, insert, and update are fulfilled
- A
2xxresponse marks the row succeeded; a4xx/5xxresponse is recorded as a per-row error with the primary key (when configured)
Audience Syncs (Add / Upsert)
Audience members are written the same way as records: each member’s row is posted to the target data view. Because the DX API has no list-membership concept, there is no remove — removing a profile from a Pega audience is handled by your Pega decisioning logic, not by this connector.
Rate Limits
| Limit | Value |
|---|---|
| Request shape | One record per API call |
| Retries | Automatic on 429 and 5xx with exponential backoff |
Pega does not publish fixed DX API rate limits; they depend on your instance sizing. Zeotap retries 429 Too Many Requests responses (honoring Retry-After) and transient 5xx errors.
Best Practices
- Use a savable data view keyed on your primary property so
upsertandupdateresolve to the correct record instead of creating duplicates - Keep the Create view in sync with your mapping — posting a field that is not on the Create view returns an HTTP
422validation error - Set the Primary Key Field to the field that identifies each row so per-row errors are easy to trace
- Match field names to the clipboard property names Pega expects in the data view
Troubleshooting
Authentication failed: invalid Client ID or Client Secret
Verify the OAuth 2.0 Client Registration is active and the Client ID/Secret are correct. Regenerate the client registration in Dev Studio under Records > Security > OAuth 2.0 Client Registration if needed.
Instance URL not reachable
Ensure the Instance URL includes the protocol and the prweb context root (e.g., https://acme.pega.com/prweb). Confirm your network allows outbound HTTPS to the Pega instance.
HTTP 422 on every record
The target data view’s Create view does not match the fields you are posting. Remove unmapped fields or add the missing fields to the Create view. Every posted field must appear on the Create view.
Records are created as duplicates instead of updated
The savable data view is not keyed on a primary property, so each write creates a new record. Configure the data view to save against its key, and set the Primary Key Field to the matching field.
Data View ID not found
Confirm the Data View ID matches an existing savable data page in your application (e.g., D_CustomerSave). Data view IDs are case-sensitive.
Rate limit or server errors (429 / 5xx)
Zeotap retries automatically with exponential backoff. If errors persist, reduce the sync’s concurrency or schedule frequency, or check your Pega instance’s capacity.