How to Count Subgrid Records in Dynamics 365 Using JavaScript – YouTube

Manish chauhanYouTube7 hours ago6 Views



In this video, I will show you how to count records in a subgrid in Dynamics 365 using JavaScript. You will learn how to retrieve the subgrid control, handle the addOnLoad event, and update a field with the total record count dynamically. This approach is useful for scenarios where you need to track related entity records within a form.
 
🔹 Topics Covered:
✅ Accessing subgrid control in Dynamics 365
✅ Using addOnLoad to ensure the subgrid is fully loaded
✅ Counting the records in the subgrid
✅ Updating a field dynamically with the record count
 
📌 Subscribe for more Dynamics 365 tutorials!
 
Link of JS code-  https://github.com/SrShaan/JS-codes/blob/main/Getcount
Link of how to add web resource- https://youtu.be/XY_7gZKnI40?si=G3P3PuzXWyS0UHL1
 
This video consists of:
00:00-00:14 Introduction
00:14-01:05 requirement explanation and demo 
01:05:02:21 Business case explanation
02:21-05:10 JS code writing
05:10-05:50 JS implementation
05:50-06:30 Code testing

#dynamics365 #javascript #powerapps #crm #d365crm #uniqueid #formsoftware #powerautomate #microsoftflow #automation #dataverse #businessprocess #nocode #timeline #sendemail #createemailrecord #dynamics365crm #crm #javascript #howto #formvalidation #powerplatformwork #d365 #dynamics365ce #dataverse #javascript #powerapps #techtutorial #crmdevelopment #Xrm.WebApi #microsoft #microsoftsoftware #microsoftdynamics #microsoftdynamics365 #microsoftdynamicscrm #dataverse #powerautomate #powerappa #erpsoftware #erp #erpsolution #visualstudio #development #d365crm #powerautomateflow #javascript #businesssolutions

source

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
March 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31       
« Feb   Apr »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...