SugarCRM is now SugarAI! Read the announcement  

Custom Field not populating in System Assignment Notifications (Leads module)

Hi everyone,

I am encountering an issue with System Assignment Notifications in the Leads module and would appreciate some advice from the community.

The Problem:
I am trying to include a natif field called "Message du lead" (account_description) in the notification email sent to users when a Lead is assigned to them.

Observations:

  • The field is correctly populated within the SugarCRM record view

  • However, the field remains blank in the actual notification email received by the user. It appears that the variable used in the notification template is not correctly pulling the data from the Lead bean during the notification trigger.

Technical Context:

  • Module: Leads
  • Field Name: account_description
  • Deployment: SugarCloud

My Question:
Has anyone successfully added more fields to the system assignment notifications?

Is there a specific syntax to use in the fr_FR.notify_template.html file for custom fields?

Here is the code modified : 

<!-- BEGIN: Lead_Subject -->
SugarCRM Lead - {LEAD_NAME}
<!-- END: Lead_Subject -->
<!-- BEGIN: Lead -->
{ASSIGNER} a assigné un Lead à {ASSIGNED_USER}.

Nom: {LEAD_NAME}
Origine principale: {LEAD_SOURCE}
Statut: {LEAD_STATUS}
Description: {LEAD_DESCRIPTION}
Message de Lead : {LEAD_SOURCE_DESCRIPTION} // 'new field'

Vous pouvez consulter la fiche de ce Lead ici:
<{URL}>
<!-- END: Lead -->

Any guidance, code snippets, or best practices would be greatly appreciated!

Thanks in advance,

H. Phuong