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 :
Supply chain | Supply Chain Management, Commerce
Unanswered

Automatically create and assign customized batch number format in production order

(0) ShareShare
ReportReport
Posted on by 30

I am new to dynamics 365 and I am having trouble where to start the customization of the following requirements:

  • Custom format of batch number, "Prefix" + start date of production + number sequence ex. (ABC-06222021-0001). The prefix is from an additional field added to InventNumGroup table.
  • Generate the custom batch number when production status is set to release. 

I have already added the additional field to the table but I don't know how to append it. I was able to generate the start date+number sequence (06222021-0001) as a batch number, however it was generated before the release status of the order.

How can I add the "Prefix" and generate the custom batch number after the release status? 

I have the same question (0)
  • huijij Profile Picture
    19,811 on at
    RE: Automatically create and assign customized batch number format in production order

    Hi Joshua,

    Did you try virtual field to add the "Prefix" and generate the custom batch number?

    regards

  • jshl Profile Picture
    30 on at
    RE: Automatically create and assign customized batch number format in production order

    Thank you for your reply.

    No. I just created a new string field in the InventNumGroup table. I'm new to D365 sorry for a noob question but what does a virtual field do and how can I use this to achieve the requirement?

  • huijij Profile Picture
    19,811 on at
    RE: Automatically create and assign customized batch number format in production order

    Hi jshl,

    You can also use Display method for table extension:

    community.dynamics.com/.../display-method-for-table-extension-d365fo

    Or with virtual-field just check:

    docs.microsoft.com/.../data-entity-computed-columns-virtual-fields

    regards

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 > Supply chain | Supply Chain Management, Commerce

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 875

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287 Super User 2025 Season 2

#3
Sagar Suman Profile Picture

Sagar Suman 235 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans