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,

  • Suggested answer
    sdfasdf Profile Picture
    840 on at
    RE: How to handle async calls in custom workflows

    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

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... 293,202 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans