saveTranslation()
Overview
public string function saveTranslation(
required string objectName
, required string id
, required string languageId
, required struct data
, boolean isDraft = false
)
Saves a translation record for a given preside object and record ID
Arguments
Name | Type | Required | Description |
---|---|---|---|
objectName | string | Yes | Name of the object whose record we are to save the translation for |
id | string | Yes | ID of the record we are to save the translation for |
languageId | string | Yes | ID of the language that the translation is for |
data | struct | Yes | Structure of data containing to save in the translation record |
isDraft | boolean | No (default=false) |