You need to sign in to do that
Don't have an account?
Soundhariyaa M
How to store a Object in list with the fields that is required for processing
Hi All,
I have a custom object A with custom fields a__c,b__c and d__c. I'm storing a List<A> and sending this list to a batch that is getting called in the finish method of the current batch.
Now, my requirement is to send this list<A> with fields that are required in the next batch processing [ in this case I need only a__c,b__c, and not d__c ].
Could anyone pls suggest me the best way to achieve this?
One way I am thinking is to use SOQL Query but this is adding another query to my transaction.
Thanks in Advance!
I have a custom object A with custom fields a__c,b__c and d__c. I'm storing a List<A> and sending this list to a batch that is getting called in the finish method of the current batch.
Now, my requirement is to send this list<A> with fields that are required in the next batch processing [ in this case I need only a__c,b__c, and not d__c ].
Could anyone pls suggest me the best way to achieve this?
One way I am thinking is to use SOQL Query but this is adding another query to my transaction.
Thanks in Advance!
Iterate your List<A> ( AList in below) in the finish method like below and only add the required fields to new List. And pass newA to your next batch.
Thanks,
Maharajan.C