Newer Version Available
ChangeEventHeader Class
Namespace
ChangeEventHeader Properties
The following are properties for ChangeEventHeader.
changedfields
Signature
public List<String> changedfields {get; set;}
Property Value
Type: List<String>
changeorigin
Signature
public String changeorigin {get; set;}
Property Value
Type: String
1com/salesforce/api/<API_Name>/<API_Version>;client=<Client_ID>- <API_Name> is the name of the Salesforce API used to make the data change. It can take one of these values: soap, rest, bulkapi, xmlrpc, oldsoap, toolingsoap, toolingrest, apex, apexdebuggerrest.
- <API_Version> is the version of the API call that made the change and is in the format XX.X.
- <Client_ID> is a string that contains the client ID of the app that initiated the change. If the client ID is not set in the API call, client=<Client_ID> is not appended to the changeOrigin field.
1com/salesforce/api/soap/49.0;client=AstroThe client ID is set in the Call Options header of an API call. For an example on how to set the Call Options header, see:
- REST API: Sforce-Call-Options Header. (Bulk API also uses the Sforce-Call-Options header. )
- SOAP API: CallOptions Header. (Apex API also uses the CallOptions element.)
changetype
Signature
public String changetype {get; set;}
Property Value
Type: String
Can be one of the following values:
- CREATE
- UPDATE
- DELETE
- UNDELETE
- GAP_CREATE
- GAP_UPDATE
- GAP_DELETE
- GAP_UNDELETE
For overflow events, the change type is GAP_OVERFLOW.
commitnumber
Signature
public Long commitnumber {get; set;}
Property Value
Type: Long
committimestamp
Signature
public Long committimestamp {get; set;}
Property Value
Type: Long
commituser
Signature
public String commituser {get; set;}
Property Value
Type: String
entityname
Signature
public String entityname {get; set;}
Property Value
Type: String
nulledfields
Signature
public List<String> nulledfields {get; set;}
Property Value
Type: List<String>
recordids
Signature
public List<String> recordids {get; set;}
Property Value
Type: List<String>
Examples of operations with same changes are:- Update of fieldA to valueA in Account records.
- Deletion of Account records.
- Renaming or replacing a picklist value that results in updating the field value in all affected records.
The recordIds field can contain a wildcard value when a change event message is generated for custom field type conversions that cause data loss. In this case, the recordIds value is the three-character prefix of the object, followed by the wildcard character *. For example, for accounts, the value is 001*.
sequencenumber
Signature
public Integer sequencenumber {get; set;}
Property Value
Type: Integer
A lead conversion is an example of a transaction that can have multiple changes. A lead conversion results in the following sequence of changes, all within the same transaction.
- Create an account
- Create a contact
- Create an opportunity
- Update a lead
transactionkey
Signature
public String transactionkey {get; set;}
Property Value
Type: String