Account ID not inserted into contact record

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iscon
    Active Community Member
    • May 2014
    • 187

    Account ID not inserted into contact record

    Not sure why nobody recognized that so far: If I select a contact for an account in it's subpanel (select) then a record gets written to account_contact but the account id doesn't get inserted into the contact record. This in turn means that the field "account" in contact doesn't show an entry but "accounts" does.
    So although this contact has one account only assigned to it it shows in the so to speak "multi account" field but not in the single one. if I then add a role to this account all of a sudden it shows in both fields.

    Solution: Write field account_id in contact when account_contact is written. For clarification purposes rename the field account in contact to "primary_account"
    ------------------
    Robert Laussegger
    iscon group
    http://www.iscongroup.net
    mailto://info@iscongroup.net
  • yuri
    Member
    • Mar 2014
    • 8511

    #2
    We must write it only if it's empty.
    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

    • iscon
      Active Community Member
      • May 2014
      • 187

      #3
      There are two conditions when to write: When the account_contact record is created and contact.account_id is empty. Or if primary account is changed.
      ------------------
      Robert Laussegger
      iscon group
      http://www.iscongroup.net
      mailto://info@iscongroup.net

      Comment

      Working...