createRecordInputFilteredByEditedFields(recordInput, originalRecord)

Creates a RecordInput object with a list of fields that have been edited from their original values to pass in a call to updateRecord(recordInput).

createRecordInputFilteredByEditedFields uses this User Interface API resource, but doesn’t support all its parameters.

Parameter NameTypeDescriptionRequired?
recordInputObjectA RecordInput object to filter.Yes
originalRecordObjectA Record object that contains the original field values.Yes

An object with a list of fields that have been edited from their original values (excluding Id which is always included).