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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Custom workflow Http post request to an external website

(0) ShareShare
ReportReport
Posted on by

Hello!

Is it possible to POST JSON data to an external website through HTTP inside of a custom CRM workflow? and have it triggered by a field in an Entity.

Thank you!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    ashlega Profile Picture
    34,477 on at

    Hi,

     not out of the box, but you can develop a custom workflow activity.. for example, I did almost exactly that here:

    www.itaintboring.com/.../dynamics-and-machine-learning-consuming-the-predictive-web-service

     That's a plugin, but you can do the same in a custom workflow activity (and, then, just register a workflow on update, add your field as a trigger, and add your custom workflow activity as a step in the workflow).

     For the basic example of a custom workflow activity, have a look here:

    msdn.microsoft.com/.../gg334455.aspx

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Heimmu,

    In my opinion it would be better to straight call plugin instead through custom workflow as seems it so difficult to manage through customization.

    You can trigger by field change event using javascript as well. please check the  reference below.

    [View:https://msdynamicscrmblog.wordpress.com/2017/11/06/call-external-cross-domain-rest-apisoap-service-from-crm-pluginscustom-workflows/amp/]

  • Suggested answer
    shamim Profile Picture
    5 on at

    I try below one and it worked for me.

    this code is used inside the Execute function of workflow.

    protected override void Execute(CodeActivityContext context)
    {

    var url = 'your web url' 

    var request = WebRequest.Create(url) as HttpWebRequest;
    if (request == null) return null;

    request.KeepAlive = false; // wtihout the I got an error from app source.
    HttpWebResponse response = (HttpWebResponse)request.GetResponse();

    }

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans