Hi Dear friends,
I need some js code for generating case and service activity code. Every account has unique Customer Number like (5643), I need to have unique ticket code per account. something like:
CustomerNumber-1224 (or 0001,...)
second section should be 4 number. without any alphabet.
*This post is locked for comments
I have the same question (0)Hi Roye,
I will suggest you to use Plugin to generate case id instead of using js, you can get case customer in your plugin and can query it's id based in customer lookup, after that you can append your case id number. You can maintain a custom entity to store this auto id.
You can check for this sample: community.dynamics.com/.../custom-auto-number-for-cases
For Js Code sample you can look our blog's WebAPI sample code: himbap.com/blog