Salesforce | Email workflow created on custom object throwing error while fetching the Related Contact Id

| By Webner

In one of our Salesforce projects we are working on, we had a custom object with an email trigger that was supposed to send email to the Related Contact. When we clicked the email button to trigger the email sending process, the Related Contact Id was not passed to the email template and didn’t return anything.

It displayed the following error while trying to get Id of the Related Contact :

“The value of the “param_name” parameter contains a character that is not allowed or the value exceeds the maximum allowed length “

Solution :

Change the settings for custom object by following these steps :

Goto Setup > Create > Object > Custom_Object_Name

Check the Allow Activities checkbox, as in the screenshot below :

Webner Solutions is a Software Development company focused on developing CRM apps (Salesforce, Zoho), LMS Apps (Moodle/Totara), Websites and Mobile apps. If you need Salesforce customization, App development or any other software development assistance please contact us at

Leave a Reply

Your email address will not be published. Required fields are marked *