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

NameTypeRequiredDescription
objectNamestringYesName of the object whose record we are to save the translation for
idstringYesID of the record we are to save the translation for
languageIdstringYesID of the language that the translation is for
datastructYesStructure of data containing to save in the translation record
isDraftbooleanNo (default=false)