Hi,
How do I get and set the teamsIds and teamsNames for any entity using PHP and js? I have tried $entity->get('teamsIds') & $entity->get('teamsNames') but the result is always null(was trying to implement this in hooks). similarly in js model.set/model.get('teamsIds') result in null or undefined. The response in browser while accessing using the url is working fine with correct result in json format. Can anyone correct me on these lines if I am missing something??
How do I get and set the teamsIds and teamsNames for any entity using PHP and js? I have tried $entity->get('teamsIds') & $entity->get('teamsNames') but the result is always null(was trying to implement this in hooks). similarly in js model.set/model.get('teamsIds') result in null or undefined. The response in browser while accessing using the url is working fine with correct result in json format. Can anyone correct me on these lines if I am missing something??

. In js, I was trying to read it in detail view of opportunites and modal view of one of the custom modules we have. I have tried doing console.log of model, rest of the fields are fine except for teamsNames, which I get as undefined.
Comment