Documentation > Services API > ServicesTMF > CreateTranslatedAsset(Asset,Asset,Asset,String,String)

CreateTranslatedAsset

Creates a translated asset and a relationship asset.

public System.String CreateTranslatedAsset(Asset,Asset,Asset,String,String)


Returns

ID of translated asset as a string

Parameters

NameDescriptionType
contentSourceAsset Source asset of the content to be translated. CrownPeak.CMSAPI.Asset
sourceLanguageAsset Asset of the source language. CrownPeak.CMSAPI.Asset
destinationLanguageAsset Asset of the destination language. CrownPeak.CMSAPI.Asset
relationshipAssetId ID of relationship asset if a relationship already exists between content source asset and a translated asset. System.String
sitePath Path of _TMF folder System.String

Code Example

C#

Sample:

            string transAssetId = ServicesTMF.CreateTranslatedAsset(contentSourceAsset, sourceLanguageAsset, destinationLanguageAsset, relAssetIdString /*if exists*/, sitePath);
            

Connect with Crownpeak