///<summary>Create a CTA with handling for the Bot </summary> ///<param name="userinput">comments from the user through the bot</param> ///<param name="title">Title of the CTA </param> /// <returns>Case or CTA number for the customer reference</returns> private string createCTA(string userinput, string title) { //decide in here if we want to make a support CASE or a Call To Action //local variables ArrayList messages = new ArrayList(); bool success; string caseNum = String.Empty; //basic error handling if (user == null) { throw new Exception("Need a user and/or email to create a CTA"); } //create the case SalesforceUtils su = new SalesforceUtils(company); caseNum = su.createCTA(title, userinput, user, out messages, out success); //something went wrong! if (!success) { emailHelpMe(messages, userinput, user); } return(caseNum); }
public string createCTAForAddingSupportUsers(String userinput) { if (user == null) { throw new Exception("Need a user and/or email to create a CTA"); } SalesforceUtils su = new SalesforceUtils(company); return(su.createCase("VCSM: User requested a CSM", userinput, user)); }
public string createCaseForUser(String userinput) { if (user == null) { throw new Exception("Need a user email to create a case"); } SalesforceUtils su = new SalesforceUtils(company); return(su.createCase("VCSM: User requested a case", userinput, user)); }
/* what to impletement the ************************************************************************************************* * Step 2: Register for Tech Support * * for Onboarding * *************************************************************************************************************************/ public string createCaseForAddingSupportUsers(String userinput) { if (user == null) { throw new Exception("Need a user email to create a case"); } SalesforceUtils su = new SalesforceUtils(company); return(su.createCase("VCSM: Please enlist users in support", userinput, user)); }
/// <summary> /// Get the options for the Webscreens to create a CTA in Gainsight /// </summary> /// <param name="priorities">Dictionary of key/value pairs</param> /// <param name="stages">Dictionary of key/value pairs</param> /// <param name="reasons">Dictionary of key/value pairs</param> /// <param name="users">Dictionary of key/value pairs</param> /// <param name="CTATypes">Dictionary of key/value pairs</param> /// <param name="playbooks">Dictionary of key/value pairs</param> /// <param name="messages">if this doesn't work, these are messages why to handle</param> public void GetCTAOptions( out Dictionary <string, string> priorities, out Dictionary <string, string> stages, out Dictionary <string, string> reasons, out Dictionary <string, string> users, out Dictionary <string, string> CTATypes, out Dictionary <string, string> playbooks, out ArrayList messages) { SalesforceUtils su = new SalesforceUtils(company); su.GetCTAOptions(out priorities, out stages, out reasons, out users, out CTATypes, out playbooks, out messages); }
/// <summary> /// Based on the email, look in salesforce for a selection of account records that match. /// </summary> /// <param name="email">email</param> /// <param name="messages">if this doesn't work, these are messages why to handle</param> /// <returns>Dictionary of key/value pairs</returns> public Dictionary <string, string> SFGetAccountIDFromEmail(string email, out ArrayList messages) { SalesforceUtils su = new SalesforceUtils(company); return(su.SFGetAccountsFromEmail(email, out messages)); }