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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Workflow with custom Action blocks Business Process Flow

(0) ShareShare
ReportReport
Posted on by

Hi,

I have an issue with a Background Workflow and a Business Process Flow.

Context:

  • 2 Custom Entity A and B
  •  A Custom Action (CA1) on Entity A with 1 optional parameter
  • A Business Process Flow (BPF1) on Entity B with no Global Workflow and no Workflow on the different Stages.
  • A Background Workflow (BW1) on Entity B set to start when Record status changes:
    • if Entity B Status Reason equals Deactivate, then execute Action CA1

Observed behavior:

If BW1 is active:

  • I cannot move to the next stage with the BPF1
  • When I manually deactivate an Entity B record, BW1 is successfully executed

BW1 is deactivated:

  • I can move to the next stage with BPF1

If I remove the Action CA1 from the Workflow BW1 and activate it, then I can move to the next stage with BPF1.
If I add a different Action (1 activity: send an email) to BW1, I get the same behavior.

Clearly, the issue comes from having Actions in a Background Workflow.
I don't know if it is a bug or if it comes from my environment, so I would like to know if somebody else can reproduce the behavior.

Thanks

*This post is locked for comments

I have the same question (0)
  • Pramod M Profile Picture
    1,445 on at

    Hi Guillaume,

    Can you please check if your workflow BW1 is synchronous or not. If synchronous can you make it as asynchronous and see if the same issue happens.

  • Community Member Profile Picture
    on at

    Hi Pramod,

    Thanks for the answer. The workflow BW1 is running in background, so asynchronously.

  • Pramod M Profile Picture
    1,445 on at

    Hi Guillaume,

    Sorry I missed that. One more thing, when you move the Business Process Flow (BPF1) , do the workflow(BW1) is getting triggered? And can you see what all stages the workflow goes through (the green check mark) if it is getting triggerd?

  • Community Member Profile Picture
    on at

    No, the workflow (BW1) is not triggered when moving the Business Process Flow (BPF1), which is expected.

    The workflow (BW1) is triggered when a record is deactivated. But for whatever reason it blocks the Business Process Flow.

    My workaround was to make the workflow (BW1) a child process called by a new workflow (BW2) triggered when the record is deactivated. It works and shows that the issue is having an action in an asynchronous workflow for an entity with a business process flow.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans