• 1Installation
  • 2Preliminary Knowledge
  • 3Create MObjects
  • 4Manipuate MObjects
  • 5Delete MObjects
  • 6Persistence
  • 7Namespace Free
  • 8Functional Support

MObject.apex

  • Docs
  • Tutorials
Getting started with MObject.apex

Namespace Free

When specifying the field names in MObject.apex, we don't need to consider the namespaces, as they are taken care of. MObject.apex will detect the namespace for us.

Pricebook2 pb = [ ... ];
MObject mo = MObject.create(pb);
mo.put('Code__c', 'New code');
// Equivalent to this
mo.put('yourapp__Code__c', 'New code');
Done