Perform the following steps:
- Navigate to the SendNotifications function, in the run.csx file and add the NewtonSoft.Json reference and the namespace.
- The Queue Trigger will receive the input in the form of a JSON string. We will use the JsonConvert.Deserializeobject method to convert the string into a dynamic object so that we can retrieve the individual properties. Replace the existing code with the following code where we are dynamically populating the properties of SendGridMessage from the code:
#r "SendGrid"#r "Newtonsoft.Json"using System;using SendGrid.Helpers.Mail; using Newtonsoft.Json;public static void Run(string myQueueItem, out SendGridMessage message, ...