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
Manjunath S 85Manjunath S 85 

Advanced Apex Superbadge issue on Step 3

Hi Trailblazers,

I am stuck in Step 3 of the Advanced Apex Specialist badge where I'm getting this error:

"Ensure that the getFamilyOptions method returns the correct picklist values."

I have only the 4 picklist values: 
User-added image

The getter method for the FamilyOptions property is defined here:

public static List<SelectOption> GetFamilyOptions(){
        List<SelectOption> familySelections = new List<SelectOption>();
        familySelections.add(new SelectOption(Constants.SELECT_ONE,Constants.SELECT_ONE));
        for(Schema.PicklistEntry ple : Constants.PRODUCT_FAMILY){
            familySelections.add(new SelectOption(ple.getLabel(),ple.getValue()));
        }
        system.debug('>>>>> familySelections >>>>>>>> '+familySelections);
        return familySelections;
    }

Can somebody please help me in figuring out what I am doing wrong here?
Best Answer chosen by Manjunath S 85
Manjunath S 85Manjunath S 85
Hi,

I had mistakenly marked the method static. Making it a instance method worked and I'm now able to proceed.

All Answers

VinayVinay (Salesforce Developers) 
Hi Manjunath,

We have separate Trailhead team who can help you with these issues.So,can you please use the below link to reach out to them so that one of the agent will get in touch with you.

Support:https://trailhead.salesforce.com/help

Also review below link for your reference.

https://techforceservices.com.au/salesforce/salesforce-advanced-apex-specialist-trailhead-superbadge/
https://techevangel.com/2018/06/01/superbadge-advanced-apex-specialist/


Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks,
Vinay Kumar
Manjunath S 85Manjunath S 85
Hi,

I had mistakenly marked the method static. Making it a instance method worked and I'm now able to proceed.
This was selected as the best answer