I’m currently learning CRM 2011 while working with it, and I thought this could be a helpful example.
In a javascript function I need to retrieve all Subject entity records and cache them on the client.
I also need them to be cached within their heirarchy.
I would think the best way to do this is to return each subject record with its id and parent id, so I can build a client-side structure in javascript.
Does anyone with CRM experience have any suggestions as to how this query should be coded? I’m ok with processing the data, just no idea how to return the results I need!
Thanks
Your answer probably works, but tbh there were too many clicks for me.
This is how I did it in the end. cacheSubjects is the main function: