Skip to main content

28 docs tagged with "apex"

View all tags

AI Tool Calling Pattern for Salesforce Apex

How to implement AI tool calling (function calling) in Salesforce Apex, working around the DML-before-callout transaction limitation with a multi-transaction follow-up pattern.

Apex Fundamentals

Core Apex programming — classes, interfaces, triggers, governor limits, and order of execution.

Revenue Cloud Invoice Write-Offs: Implementation Guide

How to implement invoice write-offs in Salesforce Revenue Cloud using the writeOffInvoices standard action API. Covers prerequisites, Apex implementation, mechanical behavior, business use cases, and comparison with other invoice close-out methods.

System Audit Field Integrity in SObject Cloning

When cloning SObjects in Apex, partially clearing system audit fields (CreatedDate, LastModifiedDate) causes FIELD_INTEGRITY_EXCEPTION errors. All four audit fields must be cleared together.

Testing

Apex testing strategies — test classes, data factories, mocking, and deployment requirements.