create
Static methods to create MObject instances.
MObject mo = MObject.create(Pricebook2.sObjectType, new Map()); Methods are as below:
| Name | Description |
|---|---|
| create(Schema.SObjectType, Object) | Create an MObject from SObject type and source |
| create(Schema.SObjectType) | Create a default MObject from SObject type |
| create(String, Object) | Create an MObject from type name and source |
| create(String) | Create a default MObject from type name |
| create(Object) | Create an MObject from source |