• Omega3k
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 13
    Questions
  • 7
    Replies

Hi All,

 

Would anyone know how to customize the "Additional To", "CC", and "BCC" lookup fields on the "Send an Email" Task page? I want these lookup fields to only show users with a specific profile. This configuration needs to be different for each profile.

 

Is this something that can be done through configuration? If not, what kind of customization would be needed?

 

Appreciate all of your help!

Hi Everyone,

 

I would like to port the following portal page, built on Force.com:

 

http://aeglepharmaceuticals.force.com/

 

What would be the best (and easier approach) to doing this in the most timely manner?

 

Thanks

Hi,

 

I was wondering if anyone can propose a best approach to merging three separate Salesforce instances into 1 ORG. I'm not sure if this is the right board to be posting this question, but I'd figure it'd be a good place to start.

 

Thanks!

Hi,

 

The following code throws a nullPointerException at the red highlighted line.

 

/**
 * An apex page controller that exposes the change password functionality
 */
public class ChangePasswordController {
    public String oldPassword {get; set;}
    public String newPassword {get; set;}
    public String verifyNewPassword {get; set;}        
    
    public PageReference changePassword() {
        //return Site.changePassword(newPassword, verifyNewPassword, oldpassword); 
        Site.changePassword(newPassword, verifyNewPassword, oldpassword);    
        return new PageReference(Site.getOriginalUrl());     }     
    
    public ChangePasswordController() {}
    
    public static testMethod void testChangePasswordController() {
        // Instantiate a new controller with all parameters in the page
        ChangePasswordController controller = new ChangePasswordController();
        controller.oldPassword = '123456';
        controller.newPassword = 'qwerty1'; 
        controller.verifyNewPassword = 'qwerty1';                
        
        System.assertEquals(controller.changePassword(),null);                        
    }    
}

 

As it is, the code coverage is at 100% (with the error)... I tried fixing the error by checking the "oldPassword", "newPassword", and "verifyNewPassword" individually, but then the code coverage drops to 57% (the blue highlighted section doesn't get checked). This is not ideal... Can anyone give me some guidance as to how I can fix the error and keep the code coverage at 100%?

 

Thanks

Hello,

Can someone help me with the folowing error:

"Package Upload Error: There are problems that prevent this package from being uploaded."

Component Type:
Apex Class


Problem:
System.QueryException: List has no rows for assignment to SObject
Class.MyProfilePageContorller.testSave: Line 78, column 35
External entry point:

Here's the code where the error occurs:
static testMethod void testSave() {         
        // Modify the test to query for a portal user that exists in your org
        User existingPortalUser = [SELECT id, profileId, userRoleId FROM User WHERE UserRoleId <> null AND UserType='CustomerSuccess' LIMIT 1];
        System.assert(existingPortalUser != null, 'This test depends on an existing test portal user to run');

Any help is appreciated...

Thanks!