简体   繁体   中英

Limit number of records in Dynamics CRM 2013 online

I want to limit the number of records that can be added for a specific entity (Custom entity ) in CRM 2013 online. I am trying to create a custom entity such that only 4 (for example) records can be added to it. Once the limit is exceeded it must no allow to open the form to add record.

You need to use a synchronous Plugin.

Inside the plugin you will check how many records there are already for your custom entity, if the count reached your limit you throw an InvalidPluginExecutionException to advise the user about the limit and stop the creation of the record.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM