Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Can't Deactivate Associated Records

Posted on by 40

Hi all, I'm stumped yet again.

I have two entities that have a N:1 relationship-- Cases (1) and Assets (N). Assets is a custom entity.

I have been trying to deactivate all assets related to deactivated cases by using flows. Every time I try to deactivate an associated asset, I get the message:

"Since case is resolved and read-only, only these attributes are updatable : "ownerid", "owneridyominame", "owneridtype", "owninguser", "statecode", "statuscode", "modifiedon", "modifiedby", "modifiedonbehalfby", "owningbusinessunit" , "processid". If you need to edit other fields, please reactivate the case."

I get this message both when sending an HTTP request and when simply clicking "Deactivate" on the D365 interface.

I understand the message: I can't update attributes on a case that is closed. But why can't I update the status/statecode of an ASSOCIATED record??

  • RE: Can't Deactivate Associated Records

    Hello again Andrew,

    I think you're quite correct. I believe it is a rollup field that is aggregating data about associated Assets based on their status. Thank you for, once again, pointing me in the right direction.

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Can't Deactivate Associated Records

    Hello,

    It seems that there is some realtime automation like plugin or workflow that tries to update the case on state change of the Asset. Find and either deactivate or alter that process and you wile able to deactivate assets without any errors.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans