Apex クラス(Apex Class)を作成・編集できない場合の対処方法について案内します。
Apex クラスや Apex トリガーをユーザーインターフェースで編集できるのは Developer Edition、Sandbox、Trial 組織のみです。本番組織ではユーザーインターフェース上に [編集] ボタンが表示されないため、変更セット、Salesforce CLI、メタデータ API を使用して変更を加えてください。
ユーザインタフェースで直接 Apex クラスや Apex トリガーを作成、編集および削除することができるのは、Developer Edition、Sandbox、および Trial 組織のみです。
また、Apex クラスや Apex トリガーの変更を行うには、操作ユーザーへ「Apex 開発」権限を割り当てる必要があります。
本番組織では、ユーザーインタフェースから Apex クラスを実行・参照できますが、ユーザーインタフェース上に [編集] ボタンが表示されないため Apex クラスや Apex トリガーを直接変更することはできません。
本番組織の Apex クラスや Apex トリガーに変更を加えるには、変更セット、Salesforce CLI、メタデータ API を使用します。
[注意]
※本番組織へ Apex クラスまたは Apex トリガーを移行する場合、テストクラスを作成し最小コードカバー率要件を満たす必要があります。
※インストール済み管理パッケージ内にある Apex クラスおよび Apex トリガーは編集や削除をすることはできません。
000384997

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.