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 365 | Integration, Dataverse...
Suggested Answer

How to handle async calls in custom workflows

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

What is the best way to make an async http request within a custom code activity ?

Making the function 

protected override void Execute(CodeActivityContext executionContext)
 async to be able to use the await keyword is not working for me. I get an error saying the real time workflow is not working..

Using .Result instead of await and leaving the initial function as it is is working but I wonder if this is the correct way of doing it?

I found a post talking about a wrapper to implement async code activities. Does anyone tried this?

Thanks,

I have the same question (0)
  • Suggested answer
    sdfasdf Profile Picture
    842 on at

    You should not be using Async code within you custom workflows: docs.microsoft.com/.../do-not-use-parallel-execution-in-plug-ins

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 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 49 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
#ManoVerse Profile Picture

#ManoVerse 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans