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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

how to define default subproject id format based on different level in d365 x++

(0) ShareShare
ReportReport
Posted on by 167

Hi developers ,

We have  default subproject id format in project management and accounting module. My requirement is to use different subproject id format based on different level.

Suppose I have standard subproject id format as ###, now at task level 1 I need to use standard format, but at level 2 I need to use ## this format and at level 3 I want to use  # format.

Please let me know how I can bypass standard subproject id for level 2 and level3.

Thanks!!

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,833 Moderator on at

    Hi D365 ER,

    You can set the number sequence format for sub project in parent project setup - Navigate to Projects (Details form)>> Project hierarchy (Tab) >> Subproject ID format (field name). So you can set the format for each sub project under parent project.

    If you want to see the code - In the ProjTable field name is "Format" - You can do find reference of the field and see how they are being used in the code to populate sub project id.

    Thanks,

    Girish S.

  • D365 ER Profile Picture
    167 on at

    Hi Girish,

    So I have a requirement where from CRM i.e third party system , when I am releasing the project and subproject, at that time the project and respective subproject are created in FO .

    I am getting the error while releasing the project.

    Error: No format can be added because the field project ID and format exceed the maximum string length of a project ID.

    I checked the field length that is of 20 characters.

    The only way is to change the subproject id format at individual so that it will not call the default format everytime while integrating the project from third party.

    Thanks!!

  • Suggested answer
    GirishS Profile Picture
    27,833 Moderator on at

    If you want to know where the Sub project number sequence is generated - Refer to the method "formMethodDataSourceCreate" - Inside this method they will be calling the generateNextSubProjectId method - This method will make use of "Format" field in ProjTable to create number sequence for sub project id.

    Thanks,

    Girish S.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 545 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 408

#3
Adis Profile Picture

Adis 267 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans