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
NAGAM VENKATA KRISHNA 8NAGAM VENKATA KRISHNA 8 

In account object after every insertion in trigger Iam query some fields(like no.of employees..)data and storing in variables. Inanother object data is there for no.of employees 0-250 means 2points,250-500 means 4points. I need to check these and Insert

In an other object with out hard coding. Iam doing like these 
String noOfEmployees;
for(Account acc:trigger.new){
noOfEmployees=acc.noOfEmployees;
}
String query='select feildApi, from customobject__C Order By Name(autoNumber data type)';
List<CustomObject__c> result = Database.query(query,True);
for(CustomObject__c obj:result){
       String data=obj.feildapi;
//In that data variable we have 'no.of employees'.
}
if(data == 'no.of employees'){
 I want to avoid these type of hardCoding.
//comparing no.of employees from account object and custom object then only inserting points to another object. 
}
AnyOne help me with these requirement :)
PriyaPriya (Salesforce Developers) 

Hi Nagam,

I am unable to understand your requirement. Can you kindly explain it in more detail.

Regards,

Priya Ranjan