Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Delete records through data entity

(0) ShareShare
ReportReport
Posted on by 64

hi,

Recently I came across a requirement where the client has asked to create an entity to create ,update as well as delete a record via the entity.
So my question is that is it even possible to delete a record via the entity. I mean does the std entities allow records to delete with the same entity.
I know that there is something related to truncate data however I am not sure if we need to mark some records to delete and others to create.

Thanks,

VK

  • Verified answer
    André Arnaud de Calavon Profile Picture
    294,903 Super User 2025 Season 1 on at
    RE: Delete records through data entity

    Hi Vicky,

    As mentioned above, using OData (e.g. Excel) can do a delete action. If you need to delete multiple records, you can delete multiple from Excel or e.g. provide a list and use Power Automate to delete the records. Technically, the records will be deleted one by one as the delete action using OData is per record.

  • vicky1234 Profile Picture
    64 on at
    RE: Delete records through data entity

    Thanks Frank,

    I need to check how deleting multiple records can be achieved as well as creating with the same entity.

    Offcourse both will be separate projects but again even I am not sure on this

  • Frank Hamelly | MVP, MCP, CSA Profile Picture
    46,522 Super User 2025 Season 1 on at
    RE: Delete records through data entity

    It depends on the records you want to delete.  You can never delete posted transactions.  Master data, config data, yes, as long as the data hasn't been used on a transaction.  The way to use DMF to delete is to select 'Truncate entity data' in your import project.  However, this action will delete ALL data in the tables related to the entity, so use with caution.  More might be possible with a custom entity, that I'm not sure about.

  • vicky1234 Profile Picture
    64 on at
    RE: D365 fno delete entity

    Thanks Murthy for the quick reply

    what do you mean by keeping the blank fields....are you talking about the excel addin ->delete and publish.

    I mean to ask if its possible via DMF , you create a project with the given entity and delete the records.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: D365 fno delete entity

    Hi VK,

    Yes, it can be done!!!

    Import data entity by keeping the BLANK for those fields which are required to delete.

  • Verified answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: D365 fno delete entity

    If the data entity is not Read only, deleting via data entity is possible when you use OData integration (for example Excel add-in).

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 487 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 310

#3
Saalim Ansari Profile Picture

Saalim Ansari 286

Overall leaderboard

Product updates

Dynamics 365 release plans