Display e-mail adress in Opportunity

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tzmudzinski
    Junior Member
    • Oct 2014
    • 9

    Display e-mail adress in Opportunity

    Hello
    I'd like to ask is there any possibilities to display in Opportunity record email address of the Account record.
    I need to fast create Account and attach the Opportunity and then send an e-mail.
    So I thought that the best way is to add field in Opportunity with e-mail adress of the Account.
    Could you give some advise?
  • yuri
    Member
    • Mar 2014
    • 8477

    #2
    Hi

    There wouldn't be problems with regular fields such like varchar, text,... But since emailAddress is a complex field it needs some development to achieve what you need.

    Add 'emailAddress' field to Opportunity manually into metadata with parameters
    "notStorable": true,
    "type": "varchar"

    Then you can create custom Service or Repository for Opportunity and write some code there that fetches emailAddress manually and sets it to opportunity entity ($entity->set('emailAddress', $fetchedEmailAddress);
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...