Skip to main content
Customer Service forum
Answered

Case Number based on business unit

editSubscribe (1) ShareShare
ReportReport
Posted on by User Group Leader

Hi all!
I want to customize the case number attribute to an autoNumber which would change format based on the business unit it belongs.

For example: I have two BUs, the first one is called Sparks and the second is Peters&Peterson. These business units coexist in the same environment and both can issue cases, the conditions would be:

  • Sparks can see/edit his own cases, but not P&P's
  • P&P can see/edit his own cases, but not Sparks'
  • root BU can see/edit both
  • Sparks case number format would be something like SPR-{RANDSTRING:4}-{SEQNUM:4}
  • P&P case nuber format would be something like PTR-{RANDSTRING:4}-{SEQNUM:4}

Is there a way to do this so it programatically choses the case number format based on the Business Unit?

Categories:
Attachments
  • Community Member Profile Picture
    Community Member User Group Leader on at
    RE: Case Number based on business unit

    I know for sure it's not an out of the box feature and I'm on version 9.x. I expected it would need an autonumber and that it would increase regardless of business unit. Still, knowing that at least somebody else did it encourages me to try it. Nice trick by triggering it onSave, that was the piece that I was missing.
    I think I will try to make it pick the prefix onCreate.

    Thanks! :D

  • Verified answer
    RE: Case Number based on business unit

    You have to create an auto number plugin, You can take help from below link:

    gceganesh.blogspot.com/.../auto-number-plugin.html

    You have to check business unit of case owner in plugin for adding SPR or PTR prefix.

  • Verified answer
    RE: Case Number based on business unit

    Hi,

    which version are you using ?

    if you are using v9.0, you shall use system autonumbering entity.Refer to below blog, and if you are watching the video , move forward to 50 minutes.

    Use the first method and remember to get the user's business unit and apply the checking.

    community.dynamics.com/.../dynamics-365-v9-0-hidden-gems-1-autonumber

  • tarunnyc Profile Picture
    tarunnyc on at
    RE: Case Number based on business unit

    I did one for my application similarly . but it will generate a string and keep on adding +1. i wrote some code as a plugin and firing it on save . i think in your case you need to check from which unit the case is created and generate case number accordingly . im pretty sure its not out of box feature 

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Featured topics

Product updates

Dynamics 365 release plans