Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Real-time workflow custom code activity

(0) ShareShare
ReportReport
Posted on by

Dear all,

I have built a custom code activity which grants and revokes permissions on record. It works fine on Create but on Delete I get an error. The system complains that I am refering an object which doesn't exist but the workflow is set to execute Before Delete, so first the custom activity block and then delete the object (I thought).

Any ideas?

Regards

Vassil

*This post is locked for comments

  • Vassil Profile Picture
    on at
    RE: Real-time workflow custom code activity

    Well, it's not about the permission on the object being deleted (a custom entity) but those on an account object which is related to the deleted object. Basically I really would like On Delete to first execute some business logic and then delete the record.

  • Suggested answer
    Deepesh161 Profile Picture
    6,317 on at
    RE: Real-time workflow custom code activity

    When you are deleting a record there is no need to revoke access.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,927 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans