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 :
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

I have the same question (0)
  • Suggested answer
    Deepesh161 Profile Picture
    6,317 on at

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

  • Vassil Profile Picture
    on at

    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.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans