Sharing a sample code that can be used to send JSON data using POST to an external service inside CRM Online Plugin. As plugin runs in sandbox mode we cannot reference Newtonsoft’s JSON.NET library http://www.newtonsoft.com/json. The other option could be to use ILMerge, which isn’t that elegant.
Here, basically we are passing some information related to lead to an external service on Post Create of it.
using Microsoft.Xrm.Sdk; using System; using System.IO; using...