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
Project2Project2 

Error: sObject type is not supported

Hi, need your help.

 

I have this Trigger, when i save i get an error. Not able to understand what am i doing wrong? My object API name is Document_ID_c

------------------------

 

trigger UpdateCaseStausonDoc on Dispute_New__c (after update) {
 List<Document_ID_c> openlineitems =
           [SELECT j.id FROM Document_ID_c j 
                WHERE J.Reference_Key1__c IN:Trigger.new
           FOR UPDATE];
.
.
.
---------------------------

Save error: sObject type 'Document_ID_c' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.

Best Answer chosen by Admin (Salesforce Developers) 
ericszulcericszulc

Looks like you are missing an underscore

 

'Document_ID__c' not 'Document_ID_c'

All Answers

ericszulcericszulc

Looks like you are missing an underscore

 

'Document_ID__c' not 'Document_ID_c'

This was selected as the best answer
Project2Project2

Thank you. That solved the issue.

 

I have another issue which i will be posting in a new thread.