Srch.U.getOrCreateFieldOnObject Method (DisplayTemplatesSrch)
Gets the field value of the object. If no field exists, a field will be created with the default values provided.
Srch.U.getOrCreateFieldOnObject(targetObject, fieldName, defaultValue)
Return value
The object’s field value.
Parameters
targetObject
The target object to analyze.fieldName
The field name to search for in the targetObject.defaultValue
The default value for the new field in case a new one is needed; ignored if a field exists.