You need to sign in to do that
Don't have an account?
NAGAM 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 :)
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 :)
Hi Nagam,
I am unable to understand your requirement. Can you kindly explain it in more detail.
Regards,
Priya Ranjan