web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,983 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,983 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans