Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Code for ticket and service activity

Posted on by Microsoft Employee

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

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Code for ticket and service activity

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans