create
Create an instance of MObject
MObject mo = (MObject)MObject.F.create.run(new Pricebook2(Name='test'));Create an instance of MObject
MObject mo = (MObject)MObject.F.create.run(new Pricebook2(Name='test'));Convert the MObject to map
Map data = (Map)MObject.F.toMap.run(false, mo); Get the value mapped by the path
Object value = MObject.F.get.run('default', 'Name', mo);Set the value mapped by the path
MObject.F.put.run('Name', 'new Name', mo);Mark the MObject as deleted
MObject.F.markDeleted.run(true, mo);Persist the MObject(s)
MObject.F.persist.run(mos);Contribute on Github! Edit this section.