Closed rigalpatel001 closed 5 years ago
Are you sure you got the relationship name correctly? ti_todoitems_notes
doesn't sound like a relationship name.
$note->get_linked_beans('ti_todoitems_notes', 'ti_todoitems_notes')
this has to be called with the correct relationship name
take a look to Stackoverflow answer on how to get the correct name
Hello,
relationship name is correct . I think i make mistake in query . Do parameter i need to pass in query ?
relationship name as query arguments?
Thanks
if you used the correct name nothing else should be added.
I suggest you add test the get_linked_beans
method in a logic hook just to see if you can get the results u expect
I have tested name is relationship name is correct.
Would you please let me know which paramaters i need to pass to get only todoitems notes?
@rigalpatel001 - there is no custom query arguments needed.
In the past comment I ask you to perform the get_linked_beans
inside a logic hook to check the actual records are retrieved.
This library works on top of regular suitecrm beans method, so first make sure that method is showing expected results.
Hello,
I am trying to get relation module data but its not working properly. I have define custom relationship with Notes module i have checked NotesType.php file in schema folder and i have extend code for todoitem(custom module relationship with notes) but its not working.
NoteType.php
Would you please suggest to get pass paramater of custom realtion module query and also provide Mutation example .
Thanks