Does Sugar have a function for finding all records related to a specific Call or a Meeting? If not, I'll have to write a fancy SugarQuery.
Does Sugar have a function for finding all records related to a specific Call or a Meeting? If not, I'll have to write a fancy SugarQuery.
You have to iterate through all the "link" fields and pass it through load_relationship(), or this.model.getRelatedCollection() if you are doing it in JS.
I don't recall seeing a method that does all of them in one shot. For example, in the case of subpanels, they are loaded by bundling multiple calls into the Bulk API, one for each relationship.
Thanks Angel!
I wasn't thinking about my needs correctly when I asked this question. I was actually looking for a way to find all orphaned Calls. I created a Sugar Query and custom endpoint to do this. See this Gist:
Thanks Angel!
I wasn't thinking about my needs correctly when I asked this question. I was actually looking for a way to find all orphaned Calls. I created a Sugar Query and custom endpoint to do this. See this Gist: