function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lawlaw 

CVent integration

Has anyone experience troubled with the cvent integrations that would cause attendee number to calculate incorrectly or be overwritten with a wrong number?

 

Thanks in Advance

 

Gina GarciaGina Garcia
Hi, I am having difficulty to log in to Cvent API Web Service. I am always getting "Access is denied." Could you please share your code in logging in to Cvent API Web Service.? Many thanks.
Lawrence Ross 9Lawrence Ross 9
//V200611 WSDL Login Authentication Method
//AUTHENTICATION METHOD
    public Boolean login(){ 
        String acctNum  = '*********'; 
        String userName = '*********'; 
        String pwd      = '*********'; 
        
            schemasCventComApi200611.LoginResult result = ws.Login(acctNum, userName, pwd);
            apiCventCom200611.CventSessionHeader session = new apiCventCom200611.CventSessionHeader();
            session.CventSessionValue = result.CventSessionHeader;
            ws.CventSessionHeader = session;
            
            Boolean success;
            if (result.LoginSuccess) {
                success = true;
                System.debug('Login succesfull'); //PASSED
                }else{
                success = false;
                System.debug('Login failed');
                }
           return success; 
     }