@@ -133,7 +133,7 @@ OrgCheck.Salesforce = {
133
133
} ) ) ;
134
134
promises . push ( new Promise ( ( resolve , reject ) => {
135
135
const query = 'SELECT DurableId, Description, NamespacePrefix, ExternalSharingModel, InternalSharingModel, ' +
136
- '(SELECT Id, DurableId, QualifiedApiName, Description, BusinessOwner.Name, BusinessStatus, ComplianceGroup, SecurityClassification FROM Fields), ' +
136
+ '(SELECT Id, DurableId, QualifiedApiName, Description FROM Fields), ' +
137
137
'(SELECT Id, Name FROM ApexTriggers), ' +
138
138
'(SELECT Id, MasterLabel, Description FROM FieldSets), ' +
139
139
'(SELECT Id, Name, LayoutType FROM Layouts), ' +
@@ -266,22 +266,14 @@ OrgCheck.Salesforce = {
266
266
const fieldIds = [ ] ;
267
267
entityDef . Fields . records . forEach ( ( r ) => {
268
268
const id = r . DurableId . split ( '.' ) [ 1 ] ;
269
- fieldsMapper [ r . QualifiedApiName ] = {
270
- 'id' : id ,
271
- 'description' : r . Description ,
272
- 'dataOwner' : r . BusinessOwner ?. Name , // Data Owner Name
273
- 'fieldUsage' : r . BusinessStatus , // Field Usage
274
- 'complianceCategory' : r . ComplianceGroup , // Compliance Categorization
275
- 'dataSensitivityLevel' : r . SecurityClassification // Data Sensitivity Level
276
- } ;
269
+ fieldsMapper [ r . QualifiedApiName ] = { 'id' : id , 'description' : r . Description } ;
277
270
fieldIds . push ( id ) ;
278
271
} ) ;
279
272
object . fields . forEach ( ( f ) => {
280
273
const mapper = fieldsMapper [ f . name ] ;
281
274
if ( mapper ) {
282
- for ( const property in mapper ) {
283
- f [ property ] = mapper [ property ] ;
284
- }
275
+ f . id = mapper . id ;
276
+ f . description = mapper . description ;
285
277
}
286
278
} ) ;
287
279
dapi ( fieldIds , ( deps ) => {
0 commit comments