Portal Community

lead/update

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

When to Use

Configuration

Connection

FieldTypeRequiredDescription
InstanceUrlstringrequiredSalesforce org URL.
AccessTokenstringrequiredValid OAuth2 access token. Store in BizFirst Credentials Manager.

Operation Fields

FieldTypeRequiredDescription
LeadIdstringrequired18-character Salesforce Lead ID of the record to update.
FirstNamestringoptionalUpdated first name.
LastNamestringoptionalUpdated last name.
CompanystringoptionalUpdated company name.
EmailstringoptionalUpdated email address.
PhonestringoptionalUpdated phone number.
StatusstringoptionalUpdated lead status picklist value.
OwnerIdstringoptionalSalesforce User ID of the new lead owner.
RatingstringoptionalUpdated rating: Hot, Warm, or Cold.
DescriptionstringoptionalUpdated notes or description.
...any Lead fieldvariesoptionalAny other standard or custom Lead field supported by your org.

Sample Configuration

{
  "Resource": "lead",
  "Operation": "update",
  "InstanceUrl": "https://myorg.my.salesforce.com",
  "AccessToken": "{{credentials.salesforce.accessToken}}",
  "LeadId": "{{nodes.GetLead.Id}}",
  "Status": "Working - Contacted",
  "Description": "Called on {{now}} — expressed interest in Enterprise tier",
  "Rating": "Hot"
}

Validation Errors

Error CodeCondition
CFG_INVALIDNode settings could not be resolved.
CFG_MISSING_INSTANCEInstanceUrl is missing or empty.
CFG_MISSING_TOKENAccessToken is missing or empty.
VAL_MISSING_FIELDLeadId is missing or empty.
UNEXPECTED_ERRORUnexpected exception during execution.

Output

Success Port

FieldTypeDescription
statusstringAlways updated on success.
resourcestringAlways lead.
operationstringAlways update.

Error Port

FieldTypeDescription
errorCodestringMachine-readable error code.
messagestringHuman-readable description of the error.
resourcestringAlways lead.
operationstringAlways update.

Sample Output

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

Expression Reference

ExpressionDescription
{{nodes.UpdateLead.status}}Operation status (updated).
{{nodes.UpdateLead.errorCode}}Error code from the error port.
{{nodes.UpdateLead.message}}Error message from the error port.

Node Policies & GuardRails

PolicyDetail
Credential storageStore AccessToken in BizFirst Credentials Manager.
Partial updateOnly fields included in the configuration are updated. Omitted fields retain their existing values.
Picklist validationStatus and Rating values must be valid picklist entries configured in the target org.
Validation rulesOrg-level validation rules may reject updates. Always wire the error port.
Converted leadsUpdating a converted lead (IsConverted = true) may be restricted. Check lead/get first if needed.
Sandbox testingTest updates in a sandbox before applying to production.

Examples

Update Status After Sales Call

After a call task is completed, update the lead's status and add call notes to Description.

{
  "LeadId": "{{nodes.GetLead.Id}}",
  "Status": "Working - Contacted",
  "Description": "Spoke on {{trigger.callDate}}. Interested in Q3 demo."
}

Enrich Lead from Data Service

An enrichment API returns company employee count and revenue. Map those values back to the lead.

{
  "LeadId": "{{trigger.leadId}}",
  "NumberOfEmployees": "{{nodes.EnrichAPI.employeeCount}}",
  "AnnualRevenue": "{{nodes.EnrichAPI.annualRevenue}}",
  "Industry": "{{nodes.EnrichAPI.industry}}"
}

Reassign Leads in Bulk

Use a Loop node over lead/getAll results, calling lead/update per iteration with a new OwnerId.

{
  "LeadId": "{{loop.current.Id}}",
  "OwnerId": "{{variables.newOwnerSalesforceId}}"
}