my requiremnt is simple,i want to do auto numbering on account entity, every time when new recrod is created the new number is also genrated in sequnce manner like(00001,00002 etc)i want to implent using only Plugin in CRM 365.
if you are on v9 you can use the built-in autonumber functionality (more details here http://anm.xrmtoolbox.com/)
previous versions you can use this solution
if you still want to write the code by yourself, you can use the source code of the celedon I linked above and see how it works:
The sample code is available to generate autonumbers in several blogs.
Please refer to the this link for your reference: nishantrana.me/.../sample-code-for-autonumbering-in-dynamics-365-july-2017-update
Please mark this answer as verified, if it helps you.
Business Applications communities