Loading

How to create or edit Apex classes or Apex Triggers

Data pubblicazione: Jul 14, 2025
Descrizione

Please refer to this guide if you can not create or edit Apex classes or triggers.

You can edit Apex classes and Apex triggers in the user interface only in Developer Edition, Sandbox, and Trial Org. In production org, the [Edit] button does not appear from the user interface, so use change sets, Salesforce CLI, metadata API to make changes.

Risoluzione

You can create, edit, and delete Apex classes and Apex triggers directly in the user interface only in Developer Edition, Sandbox, and Trial Org.

Additionally, to make changes to Apex classes or Apex triggers, you must assign the “Author Apex” permission to the user.

In production org, you can execute and view Apex classes from the user interface, but you cannot edit Apex classes or Apex triggers directly because the [Edit] button is not displayed on the user interface.

To modify Apex classes or Apex triggers in production org, use change sets, Salesforce CLI, metadata API.

[Note]

  • When migrating Apex classes or Apex triggers to a production organization, you must create a test class and meet the minimum code coverage requirements.
  • Apex classes and Apex triggers which is installed by managed packages cannot be edited or deleted.
Numero articolo Knowledge

000384997

 
Caricamento
Salesforce Help | Article