web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Make Subgrid required on opportunity form

(0) ShareShare
ReportReport
Posted on by 1,328

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?

3051.Subgrid.png

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Gopalan Bhuvanesh Profile Picture
    11,401 on at
    RE: Make Subgrid required on opportunity form

    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)

  • Suggested answer
    prt33k Profile Picture
    6,907 on at
    RE: Make Subgrid required on opportunity form

    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

  • Suggested answer
    Dynamics_Alok Profile Picture
    1,746 on at
    RE: Make Subgrid required on opportunity form

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans