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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 109

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 61 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 30

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans