Skip to main content

Hi, I'm absolute beginner and I'm trying to get familiar with salesforce triggers. I got main idea - what it's all about but I'm stuck with part of code:

CC_Variables__c variables = CC_Variables__c.getInstance('EloquaMarketingId');

 

I keep getting error: Error: Compile Error: Invalid type: CC_Variables__c at line 9 column 5

 

I have already checked many forums and tried to solve it as follows: "You need to use the API name of the object and not the label. Hence the error. To find the API name of the object go to:

Setup > create> objects> myObject > API name." 

 

But there is not such an object is this the problem? Thank you very much.

7 respuestas
  1. 19 ago 2020, 3:58
    Hi Marian,

    Looking at the API name of the custom setting this is a part of one of the package. Please check the sandbox from where you are trying to migrate the changes and install the same package in your sandbox as well. In this way you will get all the components related to that package.

    Let me know if you need any more help or information on this. For any immediate help you can reach out to me on:

    Gmail: abhibansal2790@gmail.com

    Skype: abhishek.bansal2790

    Thanks,

    Abhishek Bansal.
0/9000