You need to sign in to do that
Don't have an account?

Copy Fields from one obj to another
Hi All,
I have a custom objects Obj1 and Obj2. I need to create appropriate Obj2 and copy field to it from Obj1. As I understand I need to use Batch clas but how exactly I can do this?
Thanks!
I have a custom objects Obj1 and Obj2. I need to create appropriate Obj2 and copy field to it from Obj1. As I understand I need to use Batch clas but how exactly I can do this?
Thanks!
I have a sample code that may help you, In copying data from one Object to Another.(Using Batch class)
In this code we have a custom field ' count__c 'on custom object ' obj1 ' and another custom object 'obj2' and data from obj1 is copied to obj2 that has a custom field with same name ie: count__c.
And You can also schedule this class for every 5 mins. Ask me if you can any further queries. Or plz mark this solution as the best answer.
All Answers
I have a sample code that may help you, In copying data from one Object to Another.(Using Batch class)
In this code we have a custom field ' count__c 'on custom object ' obj1 ' and another custom object 'obj2' and data from obj1 is copied to obj2 that has a custom field with same name ie: count__c.
And You can also schedule this class for every 5 mins. Ask me if you can any further queries. Or plz mark this solution as the best answer.