You are here

newObject

newObject() - these methods return a newly created ScriptModelObject.

newObject(String objectTypeId)

newObject(String objectTypeId) - this method returns a newly created ScriptModelObject.

Parameters

objectTypeId
A string representing the object type ID.

Returns

Returns a newly created object with the specified object type.

newObject(String objectTypeId, String objectId)

newObject(String objectTypeId, String objectId) - this method returns a newly created ScriptModelObject.

Parameters

objectTypeId
A string representing the object type ID.
objectId
A string representing the object ID.

Returns

Returns a newly created object with the specified object type and ID.