Ejemplo n.º 1
0
        ///<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 case or the CTA </param>
        ///<returns>Case or CTA number for the customer reference</returns>
        private string createCase(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 case");
            }

            //create the case
            SalesforceUtils su = new SalesforceUtils(company);

            caseNum = su.createCase(title, userinput, user, out messages, out success);

            //something went wrong!
            if (!success)
            {
                emailHelpMe(messages, userinput, user);
            }

            return(caseNum);
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
        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));
        }
Ejemplo n.º 4
0
        /* 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));
        }