Add id to a many-to-many Link Multiple field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vincent
    Senior Member
    • May 2017
    • 176

    Add id to a many-to-many Link Multiple field

    I have 2 Entities, A & B, and there 2 entities have a many to many relationship.
    I want to add some B rec to A in A's before save script. I have tried the following code

    array\push(bsIds, 'XXXXXXX');

    where bs is the Link Multiple field of B in A

    but it does not work. How can i add id to a many-to-many Link Multiple field?

    Thank you
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    https://www.espocrm.com/documentatio...linkmultipleid
    if you use relation as Link Multiple field

    Comment

    • Vincent
      Senior Member
      • May 2017
      • 176

      #3
      Thank you

      Comment

      Working...