UpsertDataInput

FieldTypeRequiredDescription
allOrNoneBooleanNoIf true, all operations must succeed or all will be rolled back.
duplicateCheckBooleanNoEnables duplicate detection before upsert.
duplicateScoreIntegerNoMinimum score to qualify a record as a duplicate.
objectTypeStringYesAPI name of the main Salesforce object to insert or update (e.g., Lead).
recordTypeStringNoRecord Type developer name or ID to apply.
objectDataMap<String, String>YesKey-value pairs representing fields and values for the main record.
relatedListList<RelatedDataInput>NoList of related records to process along with the main record.