Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / How to delete sub-proj...
Finance forum
Suggested answer

How to delete sub-project/project ?

Posted on by 190

Hi

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

Thanks

Pradeep

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,696 Super User 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.

  • Pradeep00 Profile Picture
    Pradeep00 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
    André Arnaud de Cal... 287,696 Super User 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?

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard 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

  • Pradeep00 Profile Picture
    Pradeep00 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.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard 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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans