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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Automating the auto-numbering format of a field

(0) ShareShare
ReportReport
Posted on by 95

A question from a newbie here

I wonder if this below automation is possible by a WF or Flow

  • I am adding a new Auto number field that should have the YEAR+Serial Number
  • So the field should be auto named in the forma 2023-CZ123456
  • The serial numbers will be a normal auto number but I would like the year "Prefix" to update automatically with a 2024 prefix that would only affect the new created records
  • So all fields created this year will be 2023-1, 2023-2, 2023-3 and now we have a new year, the auto numbering will continue as a serial number (not from 0) and proceed as 2024-4, 2024-5

Thank you for any suggestions

I have the same question (0)
  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at

    Hi,

    Can this article help you? carldesouza.com/.../

  • Suggested answer
    F.Mogheth Profile Picture
    95 on at

    Cheers and thanks a lot... Adding a date prefix is something I have missed... That´s a great start

    Will check the format of that Date and if it can be changed but it definitely offers a possible solution/compromise to the client

  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at

    You can set a custom autonumber type.

    Example for you : {DATETIMEUTC:yyyy}-{SEQNUM:6}

    pastedimage1682429160069v1.png

    Example:

    pastedimage1682429467693v1.png

    To learn more about format : https://learn.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/create-auto-number-attributes?view=op-9-1#autonumberformat-options

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 45 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans