Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

MS CRM 2011 Custom Workflow Activity

Posted on by Microsoft Employee

Question: Custom WF Activity works synchronously or asynchronously in a workflow? (wrt MS CRM 2011)

I have an OOB WF with following part :

if condition ( ) then

1) custom wf activity to assign a task to approver user with elevated permission

2) Send email - Email is sent to approver

Issue: in a few cases it happens that email is sent before the task is assigned to approver. Does this happen because custom wf activity code runs asynchronously? If not, what might be the issue? Please note that for most of the cases it works as expected.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: MS CRM 2011 Custom Workflow Activity

    Thanks for the help, Ramanathan.

  • Suggested answer
    M.Azwar Alam Profile Picture
    M.Azwar Alam on at
    RE: MS CRM 2011 Custom Workflow Activity

    Hi,

    If you have source code of custom WF then modify it and return output parameter from custom WF activity that will indicate the success and failure for task assignment and then in next step put if condition and check this output parameter, if it success then send email

    Mark answer as verified, if it works for you

  • Suggested answer
    ram r Profile Picture
    ram r on at
    RE: MS CRM 2011 Custom Workflow Activity

    If the step are in order, it should work as expected. Check for any other workflow/plugin which clashes with this functionality

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: MS CRM 2011 Custom Workflow Activity

    Yes the workflows are asynchronous, but the code for workflow activity also run asynchronously?

    There are no other wf/plugin which sends email

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: MS CRM 2011 Custom Workflow Activity

    in 2011 workflows are async only. But second step will not run until first is complete. Can you check if there is no other wf/plugin which also sends an email?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans