Before using the TMF632 resource mappings, refer to the following.
Constraints and Limitations
Individual maps to Salesforce Contact. Organization maps to Salesforce Account.
Out-of-the-box implementation is restricted to the core data model.
givenName and familyName are mandatory for Individual POST. name is mandatory for Organization POST.
An individual party contact that has no associated related accounts (a private contact) cannot be linked with an organization party Account.
To add an Account-to-Account relationship on an Organization resource, create a PartyRoleRelation.
DELETE does not hard-delete Contact or Account records. The DELETE endpoint is an extensibility hook. Without a custom Apex implementation, DELETE returns HTTP 400.
These Individual attributes are patchable: givenName, familyName, title, birthDate, contactMedium, and relatedParty. These attributes are not patchable: id, href, name, and @type.
Organization
TMF Field
Description
Supported
Salesforce Object
Salesforce Mapping
Mandatory for POST
Supported methods
id
Unique identifier.
Yes
Account
Id
No
GET
href
Hyperlink reference. Constructed at runtime.
Yes
Account
Derived
No
GET
name
Organization name.
Yes
Account
Name
Yes
GET, POST, PATCH
organizationType
Type of organization, such as company or department.
Yes
Account
Type
No
GET, POST, PATCH
@type
Sub-class name. Always Organization in the response.
Discriminator: EmailContactMedium, PhoneContactMedium, FaxContactMedium, or GeographicAddressContactMedium
Yes
Hardcoded discriminator
No
id
Identifier for this contact medium.
Yes
Generated
No
emailAddress
Email contact medium.
Yes
Contact.Email or equivalent Account field
No
phoneNumber
Phone contact medium.
Yes
Contact.Phone or Account.Phone
No
faxNumber
Fax contact medium.
Yes
Contact.Fax or Account.Fax
No
street1, city, stateOrProvince, postCode, country
Geographic address.
Yes
Address fields on Contact or Account
No
validFor
Validity period.
No
—
No
contactType
Qualification such as personal or professional email.
No
—
No
Related Party (Individual)
Related parties on an Individual map through AccountContactRelation to Account.
TMF Field
Description
Supported
Salesforce Mapping
Mandatory for POST
role
Role played by the related party.
Yes
AccountContactRelation.Roles
No
@type
Sub-class name.
Yes
Hardcoded: RelatedPartyRefOrPartyRoleRef
No
partyOrPartyRole.id
Unique identifier of the related party.
Yes
AccountId
No
partyOrPartyRole.name
Name of the related party.
Yes
Account.Name
No
partyOrPartyRole.href
Hyperlink reference.
Yes
Derived
No
partyOrPartyRole.@type
Sub-class name.
Yes
Hardcoded: PartyRef
No
partyOrPartyRole.@referredType
Actual type of the target.
Yes
Individual or Organization
No
Related Party (Organization)
Organization related parties map through AccountContactRelation (to Contact) or AccountAccountRelation (to Account). For Account-to-Account relationships, create a PartyRoleRelation.
TMF Field
Description
Supported
Salesforce Mapping
Mandatory for POST
role
Role played by the related party.
Yes
AccountContactRelation.Roles or AccountAccountRelation.PartyRoleRelation.roleName
No
@type
Sub-class name.
Yes
Hardcoded: RelatedPartyRefOrPartyRoleRef
No
partyOrPartyRole.id
Unique identifier of the related party.
Yes
AccountContactRelation.ContactId or AccountAccountRelation.RelatedAccountId