ShowNewObjectWindow
Description
Show new object creation window to create new object. New object can be created using prefil properties as well.
Syntax
// ICommonFunctions is binded into the MFiles global object
const result = await MFiles.ShowNewObjectWindow(
objectType,
objectCreationInfo,
prefillPropertyValues,
accessControlList,
);
Parameters
Name | Type | Description |
---|---|---|
objectType | number | Object type id. |
objectCreationInfo | ObjectCreationInfo | The ObjectCreationInfo specifying the initial state of the new metadata card. |
prefillPropertyValues | Array <any > | PrefillPropertyValues is a collection of PropertyValue objects. |
accessControlList | object | The accessControlList represents an access control list (ACL). |
Return type
Type | Description |
---|---|
Promise <ObjectWindowResult> | Promise which will resolve the object window result. |