How To Parse Email Template Variable In SugarCRM /SuiteCRM By Custom Script

SugarCRM, SuiteCRM Navin Rakhonde
Greetings from InfoTechBuddies! Here is an code snippet how SugarCRM parse an Email Template. Let's have an example Here I have created email template from Emails->Create Email Template Template body : Hello $contact_name, Greetings from InfoTechBuddies. Here we have example of some variable. First Name : $contact_first_name Last Name :…
Read More

SugarCRM 7 – Apply initial filter in relate fields and relationship fields with quick(popup) search

SugarCRM 7 Navin Rakhonde
In this article,I will be explaining how to apply initial filter in relationship fields including quick(popup) search in Sugarcrm7.x.Lets say we have accounts module(sugarcrm out of the box module),is having one-to-many relationship with accounts module,for the purpose of linking new records to old(parent) record.This is not sugar out of the…
Read More

Email Template With Attachment – SugarCRM / SuiteCRM

SugarCRM, SuiteCRM Navin Rakhonde
If user want email with attachment this can be done very easily in SugarCRM / SuiteCRM. Steps are as below, Step 1 : Get the Email Template detail using following code, require_once(‘modules/EmailTemplates/EmailTemplate.php’); $emailTemp = new EmailTemplate(); $emailTemp->disable_row_level_security = true; $emailTemp->retrieve($emailTemplateId); print_r($emailTemp); Step 2 : Get the Attachments of Email Template…
Read More

Add Record To Relationship table – SugarCRM / SuiteCRM

SugarCRM, SuiteCRM Navin Rakhonde
Here there is one to many relation ship between Target(Prospect) to LeadAnd the relation is ‘prospects_leads_1’So we can add relationship table entry using following code. $object = BeanFactory::getBean(‘<module_name>’, $bean->id); $object->load_relationship(‘<relationship_module_name>’); $object->prospects_leads_1->add($bean-><module_id>); Note :1. Here, <module_name> means the module name you see in the URL, for example, Contacts, Leads, Accounts, etc.2.…
Read More