function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kingsixkingsix 

System admin cannot create/edit trigger & class today! Strange!

Our salesforce is enterprise edition and my account's profile is system admin. I go to system write trigger & class everyday.

 

When I login system today, I cannot find 'create' & 'edit' button in the trigger page (also class page)!

 

It's so strange! What can I do to solve the problem??

Afzal MohammadAfzal Mohammad

Make sure your profile has "Author Apex" permission checked.

 

Hope that helps.

 

Afzal

kingsixkingsix

That's right, I have it in my profile. Very strange!

Afzal MohammadAfzal Mohammad

Is the issue resolved, now?

 

Afzal

kingsixkingsix

Sorry, it doesn't work. I have the author apex in my profile.

kingsixkingsix

Any suggestion?

Afzal MohammadAfzal Mohammad

Config wise you seem to be ok. I suggest you take salesforce's premier support help.

 

Afzal

paul-lmipaul-lmi

you should only be able to edit apex code in sandboxes and developer edition orgs.  can you confirm you're having this issue in a non-production org?  regardless of whether it was possible before, it isn't supposed to be, in a production org.

kingsixkingsix

What's the hell!

Michael Yocca 4Michael Yocca 4
I ran into this issue recently. I was able to resolve it by making sure that the currect app/tab I was on also inclued the sobject in which the trigger or class was on.