Announcements
No record found.
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
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
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/]
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
JS-09031509-0 3
AS-17030037-0 2
Mark Eckert 2