BeyondERP.Newsletter
Menu

Job page · Project management and accounting

Sort subprojects hierarchy by Project ID

A periodic job that sorts the subprojects in the project hierarchy grid by Project ID, for all companies at once.

Business process
Plan projects
Menu item
action:ProjSortHierarchySubprojectByProjId
Setup steps
1 on this page
Show what matters for
PAGE GUIDEWhat the page does and how to use it8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA periodic job that sorts the subprojects in the project hierarchy grid by Project ID, for all companies at once.
What you do hereUse it after many subprojects are created or renumbered, so parent projects list their subprojects in Project ID order.
ExampleBEAT's program PRJ-0100 gets 24 new subprojects (PRJ-0100.01 to PRJ-0100.24) from an import in November 2026, and they appear in import order. The project manager runs the job once, and the hierarchy then lists PRJ-0100.01 to .24 in order.
Sort subprojects hierarchy by Project ID page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

Business processPlan projects
Menu pathProject management and accounting › Periodic › Project management › Sort subprojects hierarchy by Project ID
Set up firstAll projects Microsoft Learn
Used next byAll projects (check the hierarchy) Microsoft Learn
Related pagesWork breakdown structure templates Microsoft Learn
End user · Functional consultant

3How to do it

About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.

When to run it

When to run itAfter many subprojects are created, imported or renumbered.
How oftenOn demand.
Batch settingsRun in the background.
What the output showsSubprojects listed in Project ID order in the hierarchy grid for every company.

Source: Microsoft Learn

Setup steps on this page

Sort subprojects after an import

Keep project hierarchies readable.

Steps from Microsoft

  1. Go to Project management and accounting > Periodic > Project management > Sort subprojects hierarchy by Project ID.
  2. Note a parent project whose subprojects are out of order, to check afterwards.
  3. Run it in the background, because it covers the projects of all companies.
  4. Open the parent project and check that its subprojects are listed in Project ID order.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Run in the backgroundThe dialog has no selection fields; it sorts the hierarchy for all companies.Checked in Dynamics 365Yes

Common errors and fixes

MessageWhat to do
Subprojects are still out of order.The job may not have finished; check the batch job, then run it again. Checked in Dynamics 365

Test checklist

  1. Open PRJ-0100: subprojects in import order.
  2. Run the job.
  3. Open PRJ-0100: PRJ-0100.01 is first and PRJ-0100.24 last.
  4. Check a project in another company is sorted too.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Sort subprojects after an importRun it once after any import or renumbering of subprojects.Imported subprojects otherwise appear in creation order.Run after every import?Expecting the job to change project IDs or the hierarchy itself.Test: Sort imported subprojects

Feature management and licence

Licence or add-inOn the live system, Project manager, Project accountant, Field Service Integration User and Sales manager use this page.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyCross-company: the menu label says it sorts the hierarchy across all companies. Checked in Dynamics 365
Can it be undoneNothing to undo: Only the display order changes. Microsoft Learn
If you change it laterChanges only the display order of subprojects in the hierarchy grid; project data doesn't change. Microsoft Learn
Technical architect

6Technical

Menu itemaction:ProjSortHierarchySubprojectByProjId Checked in Dynamics 365
FormSysOperationTemplateForm Checked in Dynamics 365
Roles to set it up and use itTo use itProject manager ProjProjectManagerProject accountant ProjProjectAccountantField Service Integration User FieldServiceIntegrationUserSales manager TradeSalesManagerGive people one of these roles. On this system, 4 roles can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:ProjSortHierarchySubprojectByProjId
Data migrationLoad order: Sort subprojects hierarchy by Project ID has no data entity in Data management: it is a periodic job and keeps no records of its own. Load projects with ProjProjectV2Entity and run the sort once in the target system.Load first: ProjProjectV2EntityMicrosoft Learn
Everyone

8Sources