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 :
Customer experience | Sales, Customer Insights,...
Answered

Want to update field on parent entity when the last child entity is delted( no child records on parent entity)

(0) ShareShare
ReportReport
Posted on by 125

I want to get deleted row fields  with power automate but it seems its not possible unless we use plugin.

I have a child entity (lets say project) on parent entity (lets say Store) . I want to update the field on parent entity( field name is projectexits) to NO when no child record is assoicated with parent entity or every child entity is deleted 

I know it can be achieved with plugin preimage as I am new to dynamics , Can you please share me apporach for it ? Please let me know if otherway is also possible , I tied using Calculated filed but its not possible on 1:N relationship

  • Suggested answer
    Bipin D365 Profile Picture
    28,995 Moderator on at

    Hi,

    Have you tried creating rollup field to store the count of project records?

    learn.microsoft.com/.../define-rollup-fields

    Now use Business rule to set your custom field is Project exist to yes when count >0 else set No

  • Dynamics_User07 Profile Picture
    125 on at

    Hi Bipin,

    Thanks for ur suggestion we cannot use roll up field for some reason so we need to use the plugin only, any suggestion or sample code

  • Verified answer
    Bipin D365 Profile Picture
    28,995 Moderator on at

    Hi,

    Check below article for delete plugin prevalidation stage

    nishantrana.me/.../

    You can write something similar to that and check the count of project record excluding the current record then update your field on parent entity

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 109 Super User 2026 Season 2

#2
Syed Aqib Raza Profile Picture

Syed Aqib Raza 88

#3
ParthPatel249 Profile Picture

ParthPatel249 82

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans