AnsweredAssumed Answered

Customize Call notification template

Question asked by Caim Astraea on Mar 7, 2017

Been trying to customize the template for the email notification before a call. But my changes do nothing.

First I copied the fr_FR.notify_template.html to -> custom/include/language/fr_FR.notify.template.html 

 

made my changes 

<!-- BEGIN: CallReminder_Subject -->
Rappel de rendez-vous téléphonique - {CALL_SUBJECT}
<!-- END: CallReminder_Subject -->
<!-- BEGIN: CallReminder -->
Sujet: {CALL_SUBJECT}
Pour Client: {CALL_ACCOUNTPARENT}
Date de début: {CALL_STARTDATE}
Créé par: {CALL_CREATED_BY}
Description: {CALL_DESCRIPTION}
Vous pouvez voir cette appele ici: {VIEW_URL}
<!-- END: CallReminder -->

 

Eventually would need the account name and account phone that are related to the call. 

Thought I could just modify the obvious thing and the set_notification_body to add the things I need but nothing happens. for example CALL_ACCOUNTPARENT comes up empty in the email even thought it's been set 

$xtpl->assign("CALL_ACCOUNTPARENT", $call->parent_name);

 

$xtpl->assign("VIEW_URL", $sugar_config['site_url'].
'/index.php?module=Calls&record='.$call->id);

 

How would you go about assigning the parent account name and phone to the call template ? 

Thanks.

Outcomes