• BeanFactory::getBean not returning existing record in SugarCRM custom code

    I have a SugarCRM integration. It has the following line in the code $beanToSync = BeanFactory::getBean($moduleToCheck, $beanToSync->id); In $moduleToCheck the module 'Leads' is passed and $beanToSync->id have an ID of an existing Lead in SUgarCRM…
  • Custom module with existing database table

    I have requirement to create a custom module and display with records of opportunities module with condition. How can I do this.Is is possible to create a custom module with existing database table ?
  • Module Relationships load_relationship()

    Hi all, been busy learning lots about sugar and made masses of progress with moving from Salesforce to sugar CRM but just hit another snag and wanted to check if my login or understanding was correct. We have two custom modules Holokote (holo_holokote…
  • Can SugarBean access custom fields without using the "_c" ending?

    I have an after_save logic hook in a custom module where I'm setting the value of a field called rate_actual equal to the value of a custom field called engineer_rate_c . But, there is a typo in the code where I forgot the "_c" ending, like this: $bean…
  • should be compatible with SugarBean::save

    Me ayudan, por favor estoy tratando de ejecutar la versión community 6.5.22 en xamp con php 7.0 pero me muestra estos errores Warning : Declaration of SugarEmailAddress::save($id, $module, $new_addrs = Array, $primary = '', $replyTo = '', $invalid = …
  • How to filter through records using bean factory

    Hello Sugar Developer Community I am having difficulties accomplishing the following -- Entrypoint :: create leads JSON is sent over and the creation of the lead is underway I am passed a value that would represent a company name to place into a company…
  • Get Field name by its Display label

    Hello, i want to get a field name by its display label. also to know if it exist or not in the bean (for example, Lead bean) i already know how to check if field exists by its name: $FieldDefArray = $lead->getFieldDefinition($name); but how can i get…
  • Using SugarBeans outside of Sugar's framework

    We need to be able to run PHP code that makes use of Sugar data in scripts that are outside of Sugar - not scheduler tasks or logic hooks or anything. Completely outside of the Sugar world. Based on what I found here I added the following to my script…
  • How to create a new field in a bean from module Notes?

    I am using a module called notes to keep track of emails so that I can view both emails and notes in the sugar portal. Right now the portal is only set up to view the notes associated with a case and not emails. Our work around to this is going to be…
  • How to change Currency Fields on the DetailView using the Sugar Bean

    I am using SugarCRM 6.5.20 CE. I have access to the database and all files associated with this installation. Problem: Add the '$' sign before fields that contain currency. Solution: $this->bean->final_sale_amount_c = '$' . $this->bean->final_sale_amount_c;…
  • Auto Increment Integer Field in SugarCRM 7.6 On-Demand (SaaS)

    I've been encountering an issue when working with SugarCRM 7.6 On Demand (aka SaaS instance) in making a custom field auto-increment on every update. Since I can't access the code directly to modify Sugar's internals to create an auto-incremented field…