You need to sign in to do that
Don't have an account?
Aman Bisht
Apex programming error while iterating a collection
Hi
I am newbie in salesforce.I am getting an error in this code..
Please help me.
Thanks.....
please help me out
I am newbie in salesforce.I am getting an error in this code..
Please help me.
Thanks.....
public class UpdateRecord { public static void getUpdate() { List<FixedDeposit__c> li =new List<FixedDeposit__c>([SELECT FD_Amount__c from FixedDeposit__c ]); for(FixedDeposit__c a : li) { if(a.FD_Amount__c > 20000) { a.Quantity__c=200; System.debug('done'); } li.add(a); } update li; } }
please help me out
Please try below code. Let us know if this will help you
Thanks
Amit Chaudhary
All Answers
Thanks
Amit Chaudhary
Please try below code. Let us know if this will help you
Thanks
Amit Chaudhary
This code works fine now..