• Carly Crandall
  • NEWBIE
  • 15 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
Hi, 
  So I am currently writing the basic apex script that is given in an example online, I am trying to get to the part where I can deploy it but no matter where I look I can not find the outbound changesets in any sort of permission settings even though I am registered as an admin. 
Hi, 
  So I have been trying to do the basic project of working with the triggers and such.. And I am at the part where I need to go to outbound changesets as the first step. I was wondering if anyone can provide a bath of some sort that will lead me to that, I am logged in as a system administrator as well. I also have looked in the quick find box and nothing will show up. I am just a bit lost. 

Thanks, 
Carly 
Hi everyone,
  So below is my code. I usually program in java so I thought that this would be somewhat self explanitory but I am running into some issues! My first is that when I put this code and try to execute this for the DML challenge issue it will not pass and I get the error message 

Challenge Not yet complete... here's what's wrong: 
Executing the 'insertNewAccount' method failed. Either the method does not exist, is not static, or does not insert the proper account.


My code looked fine to me and I even modified it so it looked pretty much identical as some others on this forum. The other thing that I do not understand is how do I execute the code even! Just to test it and see if it works. 

public class AccountHandler {
    public static Account insertNewAccount(String accName){
        
        
    if(accName!=''){    
        try{
            Account a = new Account(Name=accName);
            insert a;
            System.debug('The account has been created, congrats.');
            return a;
        } catch(Exception e){
            System.Debug('Account has not created');
            return null;
        }
    } else {
        return null;
    }
     
        
    }    

}

Thanks Much, 
Carly C
Hi everyone,
  So below is my code. I usually program in java so I thought that this would be somewhat self explanitory but I am running into some issues! My first is that when I put this code and try to execute this for the DML challenge issue it will not pass and I get the error message 

Challenge Not yet complete... here's what's wrong: 
Executing the 'insertNewAccount' method failed. Either the method does not exist, is not static, or does not insert the proper account.


My code looked fine to me and I even modified it so it looked pretty much identical as some others on this forum. The other thing that I do not understand is how do I execute the code even! Just to test it and see if it works. 

public class AccountHandler {
    public static Account insertNewAccount(String accName){
        
        
    if(accName!=''){    
        try{
            Account a = new Account(Name=accName);
            insert a;
            System.debug('The account has been created, congrats.');
            return a;
        } catch(Exception e){
            System.Debug('Account has not created');
            return null;
        }
    } else {
        return null;
    }
     
        
    }    

}

Thanks Much, 
Carly C