I need to send an object as json, to another service, and would like to use the HTTP Utils PostJsonToUrl-operation. However I don’t seem to be able to extract the HTTP Status Code from the operation?
My code looks like this:
HttpStatusCode? crmLogResponse = WebConfigurationManager.AppSettings["ExternalLoggingUrl"].PostJsonToUrl(logRequest).GetResponseStatus()