public static async void OpenWithComment() { await Task.Run( async() => { string id = await CrmExample.OpenCase("Business Objects is down"); CrmExample.AddComment(id, "jrobinson", "Request for feedback", "https://eu3.salesforce.com/500w0000015tJgV?srPos=0&srKp=500"); }); }
public static async void OpenFindCase() { await Task.Run( async() => { string id = await CrmExample.OpenCase("Azure runtime issue, system critical error"); Console.WriteLine(Environment.NewLine); CrmExample.CheckCase(id); }); }
public static async void OpenMultipleCases() { await Task.Run( async() => { await CrmExample.OpenCase("Export failing", IncidentStatus.Reported, IncidentSeverity.High, IncidentFeedbackFrequency.Every8Hours, IncidentCommunicationType.Bidirectional); await CrmExample.OpenCase("Change user login", IncidentStatus.Reported, IncidentSeverity.Low, IncidentFeedbackFrequency.Weekly, IncidentCommunicationType.ReceiveUpdatesOnly); await CrmExample.OpenCase("SAP connection failed", IncidentStatus.Reopen, IncidentSeverity.Urgent, IncidentFeedbackFrequency.Every4Hours, IncidentCommunicationType.Bidirectional); await CrmExample.OpenCase("PDF conversion error", IncidentStatus.WorkingOnFix, IncidentSeverity.Normal, IncidentFeedbackFrequency.Daily, IncidentCommunicationType.ReceiveUpdatesOnly); await CrmExample.OpenCase("Critical Exception", IncidentStatus.UnderAnalysis, IncidentSeverity.Urgent, IncidentFeedbackFrequency.Hourly, IncidentCommunicationType.Bidirectional); await CrmExample.OpenCase("VS 2015 Install", IncidentStatus.FixDelivered, IncidentSeverity.Low, IncidentFeedbackFrequency.Monthly, IncidentCommunicationType.ReceiveUpdatesOnly); }); }