You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The VOL_CTRL_PersonalSiteContactLookup Apex class queries for an Email Template using the Name field. If a customer renames the Email Template, it results in a "nullREQUIRED_FIELD_MISSING: Email body is required" error on the PersonalSiteContactLookup Visualforce page.
The VOL_CTRL_PersonalSiteContactLookup Apex class queries for an Email Template using the Name field. If a customer renames the Email Template, it results in a "nullREQUIRED_FIELD_MISSING: Email body is required" error on the PersonalSiteContactLookup Visualforce page.
Proposing we instead query on DeveloperName instead in case they rename.
https://github.com/SalesforceFoundation/Volunteers-for-Salesforce/blob/master/src/classes/VOL_CTRL_PersonalSiteContactLookup.cls#L91
Current Query:
list<EmailTemplate> listT = [select Id from EmailTemplate where Name='Volunteers Personal Site Contact Lookup' limit 1];
Proposed Query:
list<EmailTemplate> listT = [select Id from EmailTemplate where DeveloperName='Volunteers_Personal_Site_Contact_Lookup' limit 1];
Other areas of the package are using the DeveloperName when querying against the EmailTemplate object.
The text was updated successfully, but these errors were encountered: