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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Code for ticket and service activity

(0) ShareShare
ReportReport
Posted on by

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)
  • Suggested answer
    Mahendar Pal Profile Picture
    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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans