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

How to update records in salesforce using apex class
Hi all,
I have a cvs file which contain records along with salesforce id, my task is to update all the records in salesforce using csv file through batch apex class.How to write an apex class to update the records in salesforce using slaesfroce ids . I tried using id field in contact object as an external id to upsert the record in apex code but i got an error .
Hi,
You need to basically read the Salesforce Ids from the Excel through the apex class and update the corresponding records in the apex class. Is that correct?
Thanks
Thank you for replying. How to update records using apex class?
Use SOQL.