Magidoc

SalesforceOperationInput
Input Object

Input for the unified Salesforce operation. Provide only the fields relevant to your operation type.

Fields

#

accountId

Existing Account ID to merge into (optional, for CONVERT_LEAD or MERGE)

contactId

Existing Contact ID to merge into (optional, for CONVERT_LEAD)

convertedStatus

Status to set on converted Lead (e.g., 'Qualified'). Defaults to 'Qualified'.

doNotCreateOpportunity

If true, skip creating an Opportunity during lead conversion

externalIdField

External ID field name for UPSERT operations

fields

Field values for INSERT/UPDATE/UPSERT operations

leadId

Lead ID to convert (for CONVERT_LEAD operation)

masterRecordId

Master record ID to keep (for MERGE operation)

nextRecordsUrl

Pagination URL from previous query response (for QUERY operation)

objectType

Salesforce object type (e.g., Account, Contact, Opportunity, Lead)

operation

Non-null

The type of Salesforce operation to perform

opportunityName

Name for the new Opportunity (optional, for CONVERT_LEAD)

ownerId

User ID to assign as owner of converted records (optional)

query

SOQL query string (for QUERY operation)

recordId

Record ID for UPDATE/DELETE operations

recordIdsToMerge

Record IDs to merge into the master (for MERGE operation, max 2)

search

SOSL search string (for SEARCH operation, e.g., 'FIND {Acme} IN ALL FIELDS')

Usages

#

References

#

  • Argument input of field salesforceOperation from type Mutation