findOrCreate.linkToEntity

Use the findOrCreate.linkToEntity method to link the record you found or created to another record type.

Usage 

Links the record that you found or created using the findOrCreate and findOrCreate.map Deployment API methods to another record of a different record type that you created using a separate findOrCreate API call. For example, you can link a case record you found within your organization to a contact record you create.

You can only link records if the parent record is created with a findOrCreate API call. You can’t link a child record to a record you found using the findOrCreate.linkToEntity method.

Note

Available in API versions 29.0 and later.

Syntax 

liveagent.findOrCreate(String EntityName).linkToEntity(String EntityName, String FieldName)

Parameters 

NameTypeDescriptionAvailable Versions
EntityNameStringThe type of record to which to link the child record you found or created.Available in API versions 29.0 and later.
FieldNameStringThe name of the API field in the record EntityName to which to save the ID of the child record you found or created.Available in API versions 29.0 and later.