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)

Missing "PreBusinessEntity" pre-image on custom workflow activity execution context

(0) ShareShare
ReportReport
Posted on by 20

I have a custom workflow activity being called by a workflow triggered by an update of certain fields of an entity in D365 Online instances. In my development instance all works as it should and the "PreBusinessEntity" exists in the Preimage property of the workflow execution context. However, when I move the workflow and custom activity to our test instance the "PreBusinessEntity" no longer exists. Has anybody seen this behaviour before or able to give me some hint as to why it would be so?

So far I have tried deleting the custom activities assembly from test and redeploying it manually through the plugin registration tool, then rebuilding the workflows. That makes no difference. I also appreciate that, as far as I can tell, the "PreBusinessEntity" Preimage on custom workflow activities is still an undocumented feature and not officially supported but since it has been there since the year dot I'm a little confused why it has suddenly disappeared on me in this one instance.

The custom workflow activity is also really simple. It just takes the execution context and sends it to an Azure Service Bus queue via an endpoint registration. Tracing within the activity confirms that the Preimage doesn't exist before the context is added to the queue, so it's not something special with the endpoint registration itself.

Thanks in advance for any information.

*This post is locked for comments

I have the same question (0)
  • Boschy Profile Picture
    20 on at

    The other thing to note is that if I execute the workflow manually, as an on demand workflow, the "PreBusinessEntity" pre-image is there. It's only when it runs as a background asynchronous workflow that the "PreBusinessEntity" pre-image is missing.

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    Take a look at this article. It has the list of event where pre/post images will be available or not available.

    community.dynamics.com/.../using-preentityimage-and-postentityimage-in-workflows

    PS: I don't think it is supported to use these images in workflow activity. These are not documented.

  • Boschy Profile Picture
    20 on at

    Thanks Ravi. I know that article well. As I mentioned, this is a workflow triggered by an update of an entity so it should have both pre and post images. For some reason, in just this instance, those images aren't being sent through. They are in my other instances for exactly the same workflow.

    All I can put it down to is the fact that it is an undocumented feature so we can't expect it to be reliable, even though it has worked flawlessly for about the last 6 years or so. This is the first time I have seen it fail.

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