Package Information
Downloads: 0 weekly / 0 monthly
Latest Version: 0.1.4
Author: Pega n8n Node Contributors
Available Nodes
Documentation
n8n-nodes-pega
This is an n8n community node that allows you to interact with the Pega Platform REST API directly from n8n workflows. It enables automation scenarios such as creating cases, retrieving case details, and managing attachments.
Requirements
- n8n version 1.0 or later
- Access to a Pega Platform instance with REST API enabled
- OAuth2 client credentials configured in Pega
Features
- Resource: Case
- Create: Create a new case in Pega.
- Get: Retrieve a case by its ID.
- Upload Attachment: Upload a file to Pega to get an attachment ID.
- Link Attachment: Link an uploaded attachment to an existing case.
Authentication
This node uses OAuth2 Client Credentials for authentication. You will need:
- Base URL: Your Pega instance URL (e.g.,
https://<your-instance>.pegace.net/prweb) - Access Token URL: Typically found at
<Base URL>/PRRestService/oauth2/v1/token - Client ID and Client Secret: Obtained from your Pega application's OAuth2 client registration.
Installation
For Local Development/Testing
- Clone this repository.
- Run
npm installto install dependencies. - Run
npm run buildto compile the TypeScript code. - Copy the compiled
distfolder into your n8n custom nodes directory:~/.n8n/custom/n8n-nodes-pega/
Using npm
(Once published)
- Go to Settings > Community Nodes in your n8n instance.
- Click on Install a new node.
- Enter
n8n-nodes-pegaand click Install.
Example Workflow
Example automation using the Pega node:
- Receive a form submission from a webhook.
- Use the Pega → Create Case operation to create a new case.
- Upload supporting documents using Upload Attachment.
- Link the uploaded file to the created case.
This allows automated case creation directly from external systems.
Usage
Creating a Case
- Add the Pega node to your workflow.
- Select Resource: Case and Operation: Create.
- Enter the Case Type ID (e.g.,
MyOrg-Work-LoanApplication). - Provide the case data in the Content field (under Additional Fields) as JSON.
Uploading Attachments
- Use an HTTP Request or a trigger to get binary data.
- Add the Pega node with Operation: Upload Attachment.
- Specify the name of the binary property (default is
file). - The node will return an
IDwhich you can use in the next step. - Add another Pega node with Operation: Link Attachment to link the file to a specific case.