Skip to main content
Commonmark migration
Source Link

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.

[![enter image description here][1]][1]enter image description here

The error I'm getting is

Invalid type: Google_Geocoding_API__c [1]: https://i.sstatic.net/KQ3t6.png

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.

[![enter image description here][1]][1]

The error I'm getting is

Invalid type: Google_Geocoding_API__c [1]: https://i.sstatic.net/KQ3t6.png

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.

enter image description here

The error I'm getting is

Invalid type: Google_Geocoding_API__c

Source Link
Tyler Zika
  • 2.9k
  • 5
  • 45
  • 93

Can't find sObject in use

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.

[![enter image description here][1]][1]

The error I'm getting is

Invalid type: Google_Geocoding_API__c [1]: https://i.sstatic.net/KQ3t6.png