You need to sign in to do that
Don't have an account?
Sibasish Panigrahi
Error: Compile Error: Invalid type: Check__c
I have created a lookup field in Account and while creating a trigger i used this "Check__c" to create new instance of that particular lookup.
eg: Check__c obj = new Check__c();
But this error keeps poping up.
(Note: Due to restriction i'm unable to share the code or actual field and object name. And i had checked TONS on times that i had used double underscore while using the custom object)
eg: Check__c obj = new Check__c();
But this error keeps poping up.
(Note: Due to restriction i'm unable to share the code or actual field and object name. And i had checked TONS on times that i had used double underscore while using the custom object)
It should be something like below,
Object_Name__c obj = New Object_Name__c();
All Answers
Check__c obj = new Check__c();
to
[NamespacePrefix]__Check__c obj = new [NamespacePrefix]__Check__c();
It should be something like below,
Object_Name__c obj = New Object_Name__c();