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 

Invalid field Training_Course_Plan_FCS__c for SObject Initiative_Settings__c

Hello

I have the following two sections of code that I need to understand. Initiative_settings__c is not a standard object or custom object that I can see in SF. But I can see the scheme through Eclipse. The scheme has fields in it. One of which is ANN_Marketing__c which is referenced in the second set of code? How is this sObject Built and how do I add additional fields to it? 

private Initiative_Settings__c getInitiativeSettings() {
return Initiative_Settings__c.getInstance();
}

public boolean getContainsAnnMarketingCampaigns() {
return getInitiativeSettings().ANN_Marketing__c && !getAnnMarketingCampaigns().isEmpty();
}

public List getAnnMarketingCampaigns() {
return filterList('ANN Marketing');
}

CaptainObviousCaptainObvious

Could Initiative Settings be a Custom Setting?

 

Setup > App Setup > Develop > Custom Settings

lawlaw

You Are Correct....  Thanks!