Skip to content

Salesforce

Vertex is a Salesforce-first language. This section is the reference for everything that touches the Apex runtime: SObject types, DML, Lightning components, and calling into existing Apex code.

If you are new to the Salesforce side of Vertex, read these pages in order. Each one builds on the previous.

  1. Salesforce Integration: @SObject types, the Database.* DML API, and @AuraEnabled functions and types. Start here for day-to-day Salesforce work.

  2. Apex FFI: extern type, extern new, extern method, extern field, and extern enum for calling existing Apex code from Vertex. Read this when you need to reuse Apex libraries or wrap System.* APIs.

  3. Apex.Object: the escape hatch for Apex’s universal Object type. Read this when you are working with dynamic Apex APIs that return or accept Object.

Testing

@Test, the simulated DML layer, and running tests locally before deploying. Testing reference