Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Location Check Digit Length

Posted on by

Good day,

When I first set-up locations in the warehouse the system automatically assigns a 2 or 3 character check digit. If I highlight a location and click on "Generate Check Digit" I get a new 7 character result. Is there a way to restrict the length of check digits? Duplicates are certainly fine.

Thx

Sheldon

*This post is locked for comments

  • Suggested answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Location Check Digit Length

    Hey Sheldon,

    This line of code does check digit generation when you click button on the form:

    // Generate a random check digit.
    checkText = int2str(random.randomInt(#MacroLib.whsCheckDigitMin, #MacroLib.whsCheckDigitMax));

    As you can see there are 2 macro that you can change to achieve your requirement and no setup that could be done from UI. 

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans