Skip to main content

Notifications

Announcements

No record found.

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

  • RE: Workflow with custom Action blocks Business Process Flow

    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.

  • Pramod M Profile Picture
    Pramod M 1,445 on at
    RE: Workflow with custom Action blocks Business Process Flow

    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?

  • RE: Workflow with custom Action blocks Business Process Flow

    Hi Pramod,

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

  • Pramod M Profile Picture
    Pramod M 1,445 on at
    RE: Workflow with custom Action blocks Business Process Flow

    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.

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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans