Click or drag to resize

MainLibraryCreateDataObjectFromTemplate Method

Method creates a new data object of the specified type. The properties of the specified template object will be copied from the action object to the new data object, based on the settings of the specified copy rule. The method is used in master data management scenarios: when a "new object" process completes, a new master object needs to be created based on the values of the "change request" object, that has been used in the process.

Namespace:  Omada.OE.UtilityCodeAssembly.Library
Assembly:  Omada.OE.UtilityCodeAssembly (in Omada.OE.UtilityCodeAssembly.dll) Version: 15.0.0.0
Syntax
C#
public static bool CreateDataObjectFromTemplate(
	CodeMethodInvokeContext context,
	int newDataObjectTypeId,
	int copyRuleId
)

Parameters

context
Type: Omada.OE.ModelCodeMethodInvokeContext
newDataObjectTypeId
Type: SystemInt32
copyRuleId
Type: SystemInt32

Return Value

Type: Boolean
See Also