Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

restrict user abitlity to create more record in subgrid

(0) ShareShare
ReportReport
Posted on by 125

Hi ALL,

I have a requirement to restrict user to create more than 3 records in subgrid ,

Can I get help using javascript?

  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at
    RE: restrict user abitlity to create more record in subgrid

    Hi,

    A plugin would be better suited to your needs because it runs on the server side.

    You can write a plugin on pre-create step that check the existing record and throw an error (InvalidPluginExecutionException) if they are 2 exiting records associated with your wanted record.

    You can start with this tutorial : learn.microsoft.com/.../tutorial-write-plug-in

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 671 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 167 Super User 2025 Season 1

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 138 Most Valuable Professional

Product updates

Dynamics 365 release plans