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
kalikota1.3945970503735664E12kalikota1.3945970503735664E12 

i'm gettting this (''Entity is not org-accessible at line 1 column 1'') error when i'm trying to save my code....

trigger UpdateAmount1 on Quote__c (after insert, after update) {
List<Opportunity> parentObjList = new List<Opportunity>();
List<Id> listIds = new List<Id>();
List<Quote__c> newQuotes = new Quote[]{};

for (Quote__c childObj : Trigger.new) {
    listIds.add(childObj.Qpp__c);
newQuotes.put(childObj.Qpp__c, Quote__c);
}

parentObjList = [SELECT id,Name FROM Opportunity WHERE ID IN :listIds];

for (Opportunity opp : parentObjList){
    opp.Amount = newQuotes.get(opp.Id).Total_List_Price__c;
}

update parentObjectList;
}
richfer_richfer_
Check the api name of the object and fields you'd mentioned for "Quota__c"