tag:blogger.com,1999:blog-8768186835369852617.post1566891997301847381..comments2024-03-29T00:15:27.045-07:00Comments on Life and Technology: Getting Row Count or Entity Count in Jscript or .NET in Microsoft Dynamics CRM 2011 using FetchXMLJamie Mileyhttp://www.blogger.com/profile/16109612970870135278noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8768186835369852617.post-39516478274709560292016-03-21T07:20:15.293-07:002016-03-21T07:20:15.293-07:00You can test FetchXML Online and Browse Metadata h...You can test FetchXML Online and Browse Metadata here, its quick - http://msxrmtools.com Suresh Mauryahttps://www.blogger.com/profile/01470153272498401832noreply@blogger.comtag:blogger.com,1999:blog-8768186835369852617.post-7569678407408460242012-02-01T20:34:34.385-08:002012-02-01T20:34:34.385-08:00There isn't a good way to modify this methodol...There isn't a good way to modify this methodology to get related sub-accounts that I am aware of, but you can get perform another retrievemultiple based on accounts where parent account equals some account. Then you can count those results.Jamie Mileyhttps://www.blogger.com/profile/16109612970870135278noreply@blogger.comtag:blogger.com,1999:blog-8768186835369852617.post-69029109143984700042012-02-01T15:24:43.201-08:002012-02-01T15:24:43.201-08:00Jamie, is there a way to modify your example above...Jamie, is there a way to modify your example above to get the count of all related sub-accounts and then set the results in to a number field of the parent account? My requirements make it necessary for the count to include all sub-accounts in a multi-tier account structure. I am not a hardcore coder by any stretch of the imagination so any guidance you could provide would be greatly appreciated.<br /><br />Thank you for all your contributions to the CRM community. This is not the first time I have found your code extremely useful in enhancing my companies CRM.<br /><br />Thanks,<br />RobRob Pikehttps://www.blogger.com/profile/07026718662359030852noreply@blogger.com