You need to sign in to do that
Don't have an account?
Anonymous Developer
And Contact Updated = False. Need Help Thanks
I have the logic in sched batch but i need help writing the code
Fields on contact staging:
Contact_Id__c,
Aboriginal_or_Torres_Strait_Islander__c, (checkbox)
Date_of_Birth__c, (date)
Vaccination_status__c, (picklist)
Agency_Referral__c (checkbox)
Contact_Updated__c (checkbox)
the logic I am referring to is this i don't know if it makes sense.
Contact Staging List batch > List Contact Ids Map<Id, Contact> idConMap = new Map <Id, Contact> List contact toBeUpdated; for ( Contact con : [Select Id, fields here FROM Contact WHERE Id in :listContIds] ) { idConMap.put( con.Id, con ); } for ( Contact Staging a : batch ) { Contact mapCont = idConMap.get(a.ContactId__c); if ( a.field != null ) { mapCont.field = a.field; } toBeUpdated.add( mapCont ); } update toBeUpdated;I want to get all the records where Agency Referral is True
And Contact Updated = False. Need Help Thanks
Please use below code:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
where is the mapping for contact Id?
contact staging object when a record is created the fields the fields on the contacts will be updated on the record that was written on contact staging record. does that make sense?