Preview:
MappingConfigurationService mappingConfigurationService = new MappingConfigurationService();

Schema.SObjectType objectType = Product2.getSObjectType();
System.debug(objectType);

ObjectMappingConfiguration config = mappingConfigurationService.getMappingConfigurationForType(objectType);
 
        System.debug('Field name is:' + config);

Map<Schema.SObjectField, MappedField> mappedFields = config.mappedFields;

     System.debug(mappedFields);
    System.debug(mappedFields.values());
  
String fields = String.valueOf(mappedFields);
    
 Set<String> fieldNames = new Set<String>();
        fieldNames.add('Description');

    for(Schema.SObjectField key : mappedFields.keySet()){
        System.debug('### lines.get(key) : ' + key);
        System.debug('### >>> ' + mappedFields.get(key));
        fieldNames.add(key.getDescribe().getName());
    }
  
        
        // mappedFields.get('exactOnlineField');

        System.debug('Dit zijn de velden asdfsadfsdfssdaf' + fields);

SObject recordWithHighestTimestamp = Application.getSelectorFactory().newInstanceFor(config.salesforceObjectType).selectFirstRecordByMaxTimeStamp(config.timestampField);

ExactOnlineSyncApi exactOnlineSyncApi = new ExactOnlineSyncApi(); 

System.debug(recordWithHighestTimestamp);

List<Map<String, object>> untypedEOLObjects = exactOnlineSyncApi.listExactOnlineItemsHelperJSON((String) recordWithHighestTimestamp.get(config.timestampField), fieldNames);

System.debug('Dit zijn de untypedEOLObjects = ' + untypedEOLObjects);
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter