Announcement

Collapse
No announcement yet.

I can't get entity\addLinkMultipleId to update link

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I can't get entity\addLinkMultipleId to update link

    I have a relationship between User and Lead entity. I want leads the user is assigned to to show up in the relation. In the save script of Leads I put
    PHP Code:

    entity\addLinkMultipleId
    ('users',assignedUserId); 


    ...but the user is not added. tanya could you advise me on what the correct syntax is?

    Here is a screenshot of the relationship as seen from both entities, I hope it helps:
    Click image for larger version  Name:	screenEManager.png Views:	1 Size:	35.3 KB ID:	45686

    Last edited by tothewine; 02-02-2019, 11:50 AM.

  • #2
    bump...

    Comment


    • #3
      Hello,
      if user has Link Multiple Field flag, your formula works well

      Comment


      • #4
        I have it reversed: only Lead has Link Multiple Field. Can I enable it safely for Users?

        Comment


        • #5
          You can check this box as well in Entity Manager without any problem

          Comment


          • #6
            Thanks!

            I am also still trying to figure how to use 'hasOne' relations... The 'xCall' id and name will always revert to the current call id and name whatever i set it to.

            This is in entity def json....

            Links:

            PHP Code:
                "xCall": {
                  
            "type""hasOne",
                  
            "entity""Call"
                

            Fields:

            PHP Code:
                    "xCall": {
                        
            "type""link",
                        
            "layoutMassUpdateDisabled"false,
                        
            "layoutListDisabled"false,
                        
            "readOnly"false,
                        
            "view""views/fields/link-one",
                        
            "required"false,
                        
            "audited"false,
                        
            "tooltip"false,
                        
            "isCustom"true 

            What am I doing wrong?

            Comment

            Working...
            X