I have a trigger helper with this method:
public void changeObjects(Map<Id, Cleaning__c> oldObjectsMap, Map<Id, Cleaning__c> newObjectsMap)
But it should make changes only if FieldName__c
is changed. How can I get Id for each record here to compare the values?
if(oldObjectsMap.get(someIdIsHere).FieldName__c != (newObjectsMap.get(someIdIsHere).FieldName__c){
//our code logic
}