Portal Community

account/update

Update one or more fields on an existing Salesforce Account record.

When to Use

Configuration

Connection

FieldTypeRequiredDescription
InstanceUrlstringrequiredSalesforce org URL.
AccessTokenstringrequiredValid OAuth2 access token.

Operation Fields

FieldTypeRequiredDescription
AccountIdstringrequired18-character Salesforce Account ID of the record to update.
NamestringoptionalUpdated account name.
TypestringoptionalUpdated account type.
IndustrystringoptionalUpdated industry.
PhonestringoptionalUpdated main phone number.
WebsitestringoptionalUpdated company website.
BillingStreetstringoptionalUpdated billing street.
BillingCitystringoptionalUpdated billing city.
BillingStatestringoptionalUpdated billing state.
BillingPostalCodestringoptionalUpdated billing postal code.
BillingCountrystringoptionalUpdated billing country.
AnnualRevenuedecimaloptionalUpdated annual revenue.
NumberOfEmployeesintoptionalUpdated employee count.
OwnerIdstringoptionalNew account owner Salesforce User ID.
DescriptionstringoptionalUpdated description.

Sample Configuration

{
  "Resource": "account",
  "Operation": "update",
  "InstanceUrl": "https://myorg.my.salesforce.com",
  "AccessToken": "{{credentials.salesforce.accessToken}}",
  "AccountId": "{{nodes.GetAccount.Id}}",
  "Type": "Customer",
  "AnnualRevenue": 75000000,
  "NumberOfEmployees": 1500
}

Validation Errors

Error CodeCondition
CFG_MISSING_INSTANCEInstanceUrl is missing.
CFG_MISSING_TOKENAccessToken is missing.
VAL_MISSING_FIELDAccountId is missing.
UNEXPECTED_ERRORUnexpected exception during execution.

Output

Success Port

FieldTypeDescription
statusstringAlways updated.
resourcestringAlways account.
operationstringAlways update.

Error Port

FieldTypeDescription
errorCodestringMachine-readable error code.
messagestringHuman-readable error description.

Sample Output

{ "status": "updated", "resource": "account", "operation": "update" }

Expression Reference

ExpressionDescription
{{nodes.UpdateAccount.status}}Operation result status.
{{nodes.UpdateAccount.errorCode}}Error code from error port.

Node Policies & GuardRails

PolicyDetail
Partial updateOnly fields included in configuration are updated; omitted fields are unchanged.
Validation rulesOrg-level validation rules may reject certain field values. Wire the error port.
Sandbox testingTest updates in sandbox before applying to production org.
Picklist validationType and Industry must match valid org picklist values.
Error port wiringAlways wire the error port.

Examples

Mark Account as Customer on Contract Sign

{ "AccountId": "{{trigger.accountId}}", "Type": "Customer" }

Enrich Annual Revenue from ERP

{
  "AccountId": "{{nodes.LookupAccount.records[0].Id}}",
  "AnnualRevenue": "{{nodes.ERPSync.revenue}}",
  "NumberOfEmployees": "{{nodes.ERPSync.headcount}}"
}

Reassign Accounts to New Owner

{
  "AccountId": "{{loop.current.Id}}",
  "OwnerId": "{{variables.newRepSalesforceId}}"
}