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