I'm transferring code from a managed package to a new org.
This line of code
public static string getGeocodingAPIkey(String customSettingName) {
Google_Geocoding_API__c goecodingCustomSetting = Google_Geocoding_API__c.getValues('Default');
String geocodingAPIKey = goecodingCustomSetting.Geocoding_API_Key__c;
return geocodingAPIKey;
}
There is the Google_Geocoding_API__c
class. When I go to my list of custom sObjects in the managed package org, it's not there.
The error I'm getting is
Invalid type: Google_Geocoding_API__c
Custom Setting
, not aCustom Object
. If it's missing, then you need to create it...getValues
,getInstance
, orgetOrgDefaults
would ever work.