Hello JFDDynamics,
I you see that article, in the next method:
private static async Task<string> Post2Azure(UriBuilder uriBuilder, ITracingService tracingService, IOrganizationService service)
They are calling an azure function from a workflow:
HttpResponseMessage response = client.PostAsync(uriBuilder.Uri, byteContent).Result;
if (response == null)
{
tracingService.Trace("no response received");
throw new InvalidOperationException("Failed to obtain the httpResponse");
}
result = await response.Content.ReadAsStringAsync();
tracingService.Trace("response read: " + result);
Then, they take the information from a JSON that is coming from there and creating a contact in CRM with that information:
JObject ob = JObject.Parse(result);
tracingService.Trace("responseparsed to json: ");
//Create a CRM contact
Entity contact = new Entity("contact");
contact["firstname"] = ob["Fname"].ToString();
tracingService.Trace("firsname to json: " + ob["Fname"].ToString());
contact["lastname"] = ob["Lname"].ToString();
tracingService.Trace("firsname to json: " + ob["Lname"].ToString());
contact["emailaddress1"] = ob["Email"].ToString();
Guid id = service.Create(contact);
tracingService.Trace("contact created " + id.ToString());
Hope this helps to clarify this even more.
Let us know if you have more questions.
Regards.