You need to sign in to do that
Don't have an account?
Sainath Venkat
Batch apex to create or update records
Can anyone help me out in writing batch apex that will create or update records. I have two objects
1) Staging_Event__c
2) Contact
Both objects are having same field Siscode__c, so on inserting records in Staging_Event__c, I need to check if any contact records are having same Siscode__c or not, if yes then I need to update else I need to create Contact.
Can anyone help me out on writing batch apex here if possible.
1) Staging_Event__c
2) Contact
Both objects are having same field Siscode__c, so on inserting records in Staging_Event__c, I need to check if any contact records are having same Siscode__c or not, if yes then I need to update else I need to create Contact.
Can anyone help me out on writing batch apex here if possible.
Please check this url it will help you.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm
https://trailhead.salesforce.com/en/content/learn/modules/asynchronous_apex/async_apex_batch
Please let me know if you still have any issues
Please check this code and make changes according your requirement
Thank You
www.nubeselite.com
Developement | Training | Consulting
Please Mark this as solution if your problem resolved.