Portal Community

contact/getAll

Query and retrieve multiple Contact records from Salesforce with an optional filter and limit.

When to Use

Configuration

Connection

FieldTypeRequiredDescription
InstanceUrlstringrequiredSalesforce org URL.
AccessTokenstringrequiredValid OAuth2 access token.

Operation Fields

FieldTypeRequiredDescription
QuerystringoptionalSOQL WHERE clause filter, e.g. AccountId = '0015g000007HijKAB'.
LimitintoptionalMaximum number of records to return.

Sample Configuration

{
  "Resource": "contact",
  "Operation": "getAll",
  "InstanceUrl": "https://myorg.my.salesforce.com",
  "AccessToken": "{{credentials.salesforce.accessToken}}",
  "Query": "AccountId = '{{trigger.accountId}}'",
  "Limit": 100
}

Validation Errors

Error CodeCondition
CFG_MISSING_INSTANCEInstanceUrl is missing.
CFG_MISSING_TOKENAccessToken is missing.
UNEXPECTED_ERRORUnexpected exception.

Output

Success Port

FieldTypeDescription
recordsarrayArray of Contact objects.
totalSizeintNumber of contacts returned.
resourcestringAlways contact.
operationstringAlways getAll.

Error Port

FieldTypeDescription
errorCodestringMachine-readable error code.
messagestringError description.

Sample Output

{
  "records": [
    { "Id": "0035g000006LmnOPQ", "FirstName": "Alex", "LastName": "Rivera", "Email": "alex@acme.com" },
    { "Id": "0035g000006XyzABC", "FirstName": "Sam", "LastName": "Torres", "Email": "sam@acme.com" }
  ],
  "totalSize": 2,
  "resource": "contact",
  "operation": "getAll"
}

Expression Reference

ExpressionDescription
{{nodes.GetAllContacts.records}}Array of all Contact records.
{{nodes.GetAllContacts.totalSize}}Count of contacts returned.
{{nodes.GetAllContacts.records[0].Email}}First contact's email.

Node Policies & GuardRails

PolicyDetail
Credential storageStore AccessToken in BizFirst Credentials Manager.
Query filter safetyNever interpolate unsanitized input into Query.
Limit enforcementAlways set a Limit in production.
Large datasetsUse soql/executeWithPagination for full contact exports.
Error port wiringAlways wire the error port.

Examples

All Contacts for an Account

{ "Query": "AccountId = '{{trigger.accountId}}'", "Limit": 200 }

Contacts by Title for Executive Outreach

{ "Query": "Title LIKE '%VP%' OR Title LIKE '%Director%'", "Limit": 100 }

Sync New Contacts to Marketing Platform

{ "Query": "CreatedDate = LAST_7_DAYS", "Limit": 500 }
// Loop: send each contact to email marketing API