Create and update custom labels using Tooling API

GOAL To be able to create custom label along with translation programmatically. SOLUTION We can use tooling API to create the custom label and its translation as below. The Master label is stored in External String and translation is stored in ExternalStringLocalization Request to create master label: Endpoint Payload Response We can grab the Id of Master Label …

Create and update custom labels using Tooling API Read More »

“NO_MASS_MAIL_PERMISSION” Error While Sending Email From Apex

If you are getting this error message while sending email using “Messaging.SingleEmailMessage” System.EmailException: SendEmail failed. First exception on row 0; first error: NO_MASS_MAIL_PERMISSION, Single email is not enabled for your organization or profile. Single email must be enabled for you to use this feature.: [] Step to resolution Make sure Email Deliverability is turned on. …

“NO_MASS_MAIL_PERMISSION” Error While Sending Email From Apex Read More »