Click or drag to resize

MainCreateDataObjectFromTemplate 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 is completed,

a new master object needs to be created based on the values of the "change request" object that

was used in the process.

The update events triggered on the new data object type are executed on the created data object.

Codemethod usage
Designed to be used in a process only (Yes/No)No
Action Object (data object type)

Namespace:  Omada.OE.UtilityCodeAssembly
Assembly:  Omada.OE.UtilityCodeAssembly (in Omada.OE.UtilityCodeAssembly.dll) Version: 15.0.0.0
Syntax
C#
public bool CreateDataObjectFromTemplate(
	CodeMethodInvokeContext context,
	string newDataObjectTypeUIdStr,
	string copyRuleUIdStr
)

Parameters

context
Type: Omada.OE.ModelCodeMethodInvokeContext
An invoke context object.
newDataObjectTypeUIdStr
Type: SystemString
UId of the DataObjectType based on which the new data object will be created
copyRuleUIdStr
Type: SystemString
UId of the copyrule to be used to copy data.

Return Value

Type: Boolean
See Also