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

Notifications

Announcements

No record found.

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?

I have the same question (0)
  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at

    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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans