I've created this subgrid on my opportunity form, however I'd like to make it required so that users must add a record in the subgrid in order to save the opportunity. Is this possible?
*This post is locked for comments
Using JavaScript in the form, OnSave check for the number of records in the grid.
(At the time of creation, the number of rows for the subgrid would be 0)
Hi,
This will be tricky since sub-grids get enabled only when the record is saved. User are allowed to related record by adding them to subgrid of a existing record.
What you can do is probably is show some 'Alerts' on form when user saves the record.
You can read more about alert here :
www.powerobjects.com/.../dynamics-crm-alert-and-notification-javascript-methods
Thanks,
PS
You cant associate any record without successful creation.I think Plugin would be good option and throw Business Process Error as a Notification.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
HR-09070029-0 2
ED-30091530-0 1