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

GetLocaleId

Searches through the assets in a given path and checks if one of the assets' "folder_root" field content exists anywhere in the path of the "asset" parameter. If so, then it returns the ID of the asset that had the matching "folder_root" field.

public System.String GetLocaleId(Asset,String)


Returns

ID string of the asset with matching content in the "folder_root" field

Parameters

NameDescriptionType
asset Asset with a path that contains the "folder_root" CrownPeak.CMSAPI.Asset
sitePath _TMF folder path System.String

Connect with Crownpeak