How to dynamically create a record in a custom module from an inbound email?

Hi All SugarCRM Experts,

I am able to create a case successfully on an inbound email for a
group account by enable Enable "Create Case from Email" in advance set
up, 

Instead of create a case, i want to create a record in custom module for this where can i write code? please guide me.
I am using CE 6.5.17

Naren..
Parents
  • Hi naren,

    This can be accomplished using logic hooks. Setup the Inbound Email account so that the emails get imported into Sugar, then create a before_save logic hook on the Emails module. You can then create the record in the custom module in your logic hook code. If you need assistance in setting this up, just let me know!

    -Alan
  • Hi, 
       I have the same issue like , Whenerver any email will come into personal account of sugarcrm email then I want to create the contact record using custom code. So I wrote the after save logic hook but Its not working when the email is coming into sugarcrm.The logic hook is triggering when I send the mail from surgarcrm.
    But I need the logic hook should trigger whenerver email will come to sugarcrm. Please check my code and suggest me how can I do this??.
Reply
  • Hi, 
       I have the same issue like , Whenerver any email will come into personal account of sugarcrm email then I want to create the contact record using custom code. So I wrote the after save logic hook but Its not working when the email is coming into sugarcrm.The logic hook is triggering when I send the mail from surgarcrm.
    But I need the logic hook should trigger whenerver email will come to sugarcrm. Please check my code and suggest me how can I do this??.
Children
No Data