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 :
Dynamics 365 Community / Forums / Finance forum / How to delete sub-proj...
Finance forum

How to delete sub-project/project ?

(0) ShareShare
ReportReport
Posted on by 190

Hi

How to delete a project/sub-project programmatically(Project Management & Accounting)?

Thanks

Pradeep

I have the same question (0)
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: How to delete sub-project/project ?

    Hi Pradeep,

    What do you mean by 'progammatically' and why do you want to delete them?

    In D365FO you cannot simply manipulate records as in previous versions.

    Also let us know if some transactions have been posted on those projects.

    If you have posted transactions there you cannot simply delete those projects.  

    Best regards,

    Ludwig

  • Pradeep00 Profile Picture
    190 on at
    RE: How to delete sub-project/project ?

    Ludwig Reinhard

    we have a requirement where a project has multiple departments. So for each department we have created sub project under main project. If a user deletes any department associated sub project also be deleted.

    And we don't have any transactions posted on these projects. Programmatically means on button click I should able to delete the project.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: How to delete sub-project/project ?

    I see.

    So, what you are looking for is the code to realize that, right?

    Have you thought about other (code-less solutions) such as Flow/Logic apps that can do this for you?

    Best regards,

    Ludwig

  • André Arnaud de Calavon Profile Picture
    300,727 Super User 2025 Season 2 on at
    RE: How to delete sub-project/project ?

    Hi Pradeep,

    Which exact departments are you talking about? The internal organizations/dimensions? Or another table where you link departments on a project?

  • Pradeep00 Profile Picture
    190 on at
    RE: How to delete sub-project/project ?

    André Arnaud de Calavon

    Department is a another table where I link departments to project. Is there way I can delete the projects through code?

  • André Arnaud de Calavon Profile Picture
    300,727 Super User 2025 Season 2 on at
    RE: How to delete sub-project/project ?

    Hi Pradeep,

    It would be possible to set a delete action on your new custom table. In that case, it will also try to delete the related records. Test then if it is preventing correctly if the project already has transactions.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans