You need to sign in to do that
Don't have an account?
karthikeya 2
update fiels using batch class?
Hi all how to update a field using batchclass.
can any provide a sample code.
thanks in advance.
can any provide a sample code.
thanks in advance.
Check below link it will help to know some concepts of batch apex .Also there is an example which will help you to update record through batch apex .Details are explained in the post .
http://manojjena20.blogspot.in/2015/06/batch-apex-in-depth.html
Let me know if it helps !!
Thanks
Manoj
Hi Karthikeya,
Check below code it will help to know some concepts of batch apex.
Let me know if it helps !!
Thanks
Arun
In order to update multiple fields, you batch class would need some modifications -
Use a map of field names and values, instead of two variables field and value
In this example I have used a String map, considering all String values to be udpated. Modify the map to use an 'object' type , for varying type of field updates.
Hope it helps you.
Regards,
Jyothsna D.