We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f561b3a + 8f8f938 commit d988272Copy full SHA for d988272
force-app/main/default/classes/main/standard-soql/SOQL.cls
@@ -2222,6 +2222,9 @@ public virtual inherited sharing class SOQL implements Queryable {
2222
for (String field : requestedFields) {
2223
filteredFields.put(field, originalFields.get(field) ?? null);
2224
}
2225
+ if(originalFields.containsKey('Id')) {
2226
+ filteredFields.put('Id', originalFields.get('Id'));
2227
+ }
2228
2229
// JSON.serialize and JSON.deserialize are used to copy not writtable fields
2230
cleanedRecords.add((SObject) JSON.deserialize(JSON.serialize(filteredFields), objectTypeName));
0 commit comments