Org Check is an easy-to-install and easy-to-use Salesforce application in order to quickly analyze your org and its technical debt.
This section provides a detailed breakdown of all queries performed by each dataset, including SOQL queries, Metadata API calls, Tooling API calls, SOSL queries, and other database access methods with their characteristics.
Source: build/src/api/dataset/orgcheck-api-dataset-apexclasses.js
SELECT Id, Name, ApiVersion, NamespacePrefix, Body, LengthWithoutComments,
SymbolTable, CreatedDate, LastModifiedDate
FROM ApexClass
WHERE ManageableState IN ('installedEditable', 'unmanaged')
ORDER BY Id
SELECT ApexClassId
FROM AsyncApexJob
WHERE JobType = 'ScheduledApex'
AND ApexClass.ManageableState IN ('installedEditable', 'unmanaged')
SELECT ApexClassId, MethodName, ApexTestRunResult.CreatedDate, RunTime,
Outcome, StackTrace, (SELECT Cpu, AsyncCalls, Sosl, Soql, QueryRows,
DmlRows, Dml FROM ApexTestResults LIMIT 1)
FROM ApexTestResult
WHERE (Outcome != 'Pass' OR RunTime > 20000)
AND ApexTestRunResult.Status = 'Completed'
AND ApexClass.ManageableState IN ('installedEditable', 'unmanaged')
ORDER BY ApexClassId, ApexTestRunResult.CreatedDate desc, MethodName
This query is run in batches with 500 apex class IDs max (see subsetIds).
SELECT ApexClassOrTriggerId, ApexTestClassId
FROM ApexCodeCoverage
WHERE ApexClassOrTriggerId IN (<subsetIds>)
AND ApexTestClass.ManageableState IN ('installedEditable', 'unmanaged')
GROUP BY ApexClassOrTriggerId, ApexTestClassId
This query is run in batches with 500 apex class IDs max (see subsetIds).
SELECT ApexClassOrTriggerId, NumLinesCovered, NumLinesUncovered, Coverage
FROM ApexCodeCoverageAggregate
WHERE ApexClassOrTriggerId IN (<subsetIds>)
This query is run with composite using batch size=500.
Each SOQL query can include a maximum of 100 IDs.
Below is an example of such a composite query (version and IDs in url will vary):
POST /tooling/composite
[
{
method: 'GET',
url: '/services/data/v60.0/tooling/query?q=SELECT+MetadataComponentId,
+MetadataComponentName,+MetadataComponentType,+RefMetadataComponentId,
+RefMetadataComponentName,+RefMetadataComponentType+FROM
+MetadataComponentDependency+WHERE+RefMetadataComponentId+IN
+('xyz000000000001','xyz000000000002',...)+OR+MetadataComponentId+IN
+('xyz000000000001','xyz000000000002',...)'
},
{
method: 'GET',
url: '/services/data/v60.0/tooling/query?q=SELECT+MetadataComponentId,
+MetadataComponentName,+MetadataComponentType,+RefMetadataComponentId,
+RefMetadataComponentName,+RefMetadataComponentType+FROM
+MetadataComponentDependency+WHERE+RefMetadataComponentId+IN
+('xyz000000000101','xyz000000000102',...)+OR+MetadataComponentId+IN
+('xyz000000000101','xyz000000000102',...)'
},
...
]
Source: build/src/api/dataset/orgcheck-api-dataset-apextriggers.js
SELECT Id, Name, ApiVersion, Status, NamespacePrefix, Body, UsageBeforeInsert,
UsageAfterInsert, UsageBeforeUpdate, UsageAfterUpdate, UsageBeforeDelete,
UsageAfterDelete, UsageAfterUndelete, UsageIsBulk, LengthWithoutComments,
EntityDefinition.QualifiedApiName, CreatedDate, LastModifiedDate
FROM ApexTrigger
WHERE ManageableState IN ('installedEditable', 'unmanaged')
This query is run with composite using batch size=500.
Each SOQL query can include a maximum of 100 IDs.
Below is an example of such a composite query (version and IDs in url will vary):
POST /tooling/composite
[
{
method: 'GET',
url: '/services/data/v60.0/tooling/query?q=SELECT+MetadataComponentId,
+MetadataComponentName,+MetadataComponentType,+RefMetadataComponentId,
+RefMetadataComponentName,+RefMetadataComponentType+FROM
+MetadataComponentDependency+WHERE+RefMetadataComponentId+IN
+('xyz000000000001','xyz000000000002',...)+OR+MetadataComponentId+IN
+('xyz000000000001','xyz000000000002',...)'
},
{
method: 'GET',
url: '/services/data/v60.0/tooling/query?q=SELECT+MetadataComponentId,
+MetadataComponentName,+MetadataComponentType,+RefMetadataComponentId,
+RefMetadataComponentName,+RefMetadataComponentType+FROM
+MetadataComponentDependency+WHERE+RefMetadataComponentId+IN
+('xyz000000000101','xyz000000000102',...)+OR+MetadataComponentId+IN
+('xyz000000000101','xyz000000000102',...)'
},
...
]
Source: build/src/api/dataset/orgcheck-api-dataset-applications.js
SELECT ApplicationId, Name, Label, NamespacePrefix
FROM AppMenuItem
WHERE Type = 'TabSet'
Source: build/src/api/dataset/orgcheck-api-dataset-apppermissions.js
SELECT ApplicationId, IsAccessible, IsVisible
FROM AppMenuItem
WHERE Type = 'TabSet'
SELECT SetupEntityId, ParentId, Parent.IsOwnedByProfile, Parent.ProfileId
FROM SetupEntityAccess
WHERE SetupEntityType = 'TabSet'
Source: build/src/api/dataset/orgcheck-api-dataset-browsers.js
SELECT Browser, COUNT(Id) CntBrowser
FROM LoginHistory
WHERE LoginType = 'Application'
GROUP BY Browser
Source: build/src/api/dataset/orgcheck-api-dataset-collaborationgroups.js
if Chatter is not enabled in the Org, you will get an INVALID_TYPE error (which is logical).
SELECT Id, InformationBody, Description, Name, CreatedDate, LastModifiedDate
FROM CollaborationGroup
Source: build/src/api/dataset/orgcheck-api-dataset-currentuserpermissions.js
We perform an SOQL by permission we are interested in (see field). In some case, if
the permission is not available in the org, we assume false and it does not block
us from getting the other permissions.
SELECT Permissions<field>
FROM UserPermissionAccess
Source: build/src/api/dataset/orgcheck-api-dataset-customfields.js
SELECT Id, EntityDefinition.QualifiedApiName, EntityDefinition.IsCustomSetting,
EntityDefinition.KeyPrefix
FROM CustomField
WHERE ManageableState IN ('installedEditable', 'unmanaged')
This query is run with composite using batch size=500.
Each SOQL query can include a maximum of 100 IDs.
Below is an example of such a composite query (version and IDs in url will vary):
POST /tooling/composite
[
{
method: 'GET',
url: '/services/data/v60.0/tooling/query?q=SELECT+MetadataComponentId,
+MetadataComponentName,+MetadataComponentType,+RefMetadataComponentId,
+RefMetadataComponentName,+RefMetadataComponentType+FROM
+MetadataComponentDependency+WHERE+RefMetadataComponentId+IN
+('xyz000000000001','xyz000000000002',...)+OR+MetadataComponentId+IN
+('xyz000000000001','xyz000000000002',...)'
},
{
method: 'GET',
url: '/services/data/v60.0/tooling/query?q=SELECT+MetadataComponentId,
+MetadataComponentName,+MetadataComponentType,+RefMetadataComponentId,
+RefMetadataComponentName,+RefMetadataComponentType+FROM
+MetadataComponentDependency+WHERE+RefMetadataComponentId+IN
+('xyz000000000101','xyz000000000102',...)+OR+MetadataComponentId+IN
+('xyz000000000101','xyz000000000102',...)'
},
...
]
Note: This type of access is performed by the method we call readMetadataAtScale().
This query is run with composite using batch size=1000.
Each Record describe is about a unique id (obviously).
Below is an example of such a composite query (version and id in url will vary):
POST /tooling/composite
[
{ method: 'GET', url: '/services/data/v60.0/tooling/sobjects/CustomField/xyz000000000001' },
{ method: 'GET', url: '/services/data/v60.0/tooling/sobjects/CustomField/xyz000000000002' },
{ method: 'GET', url: '/services/data/v60.0/tooling/sobjects/CustomField/xyz000000000003' },
...
]
Source: build/src/api/dataset/orgcheck-api-dataset-customlabels.js
SELECT Id, Name, NamespacePrefix, Category, IsProtected, Language, MasterLabel,
Value, CreatedDate, LastModifiedDate
FROM ExternalString
WHERE ManageableState IN ('installedEditable', 'unmanaged')
This query is executed via the Tooling composite API to retrieve dependencies of
all custom labels returned by the initial query. The composite batches IDs (up to
500 per batch) and may split into multiple SOQL calls (up to 100 IDs per call).
Below is an example of such a composite query (version and IDs in url will vary):
POST /tooling/composite
[
{
method: 'GET',
url: '/services/data/v60.0/tooling/query?q=SELECT+MetadataComponentId,
+MetadataComponentName,+MetadataComponentType,+RefMetadataComponentId,
+RefMetadataComponentName,+RefMetadataComponentType+FROM
+MetadataComponentDependency+WHERE+RefMetadataComponentId+IN
+('xyz000000000001','xyz000000000002',...)+OR+MetadataComponentId+IN
+('xyz000000000001','xyz000000000002',...)'
},
{
method: 'GET',
url: '/services/data/v60.0/tooling/query?q=SELECT+MetadataComponentId,
+MetadataComponentName,+MetadataComponentType,+RefMetadataComponentId,
+RefMetadataComponentName,+RefMetadataComponentType+FROM
+MetadataComponentDependency+WHERE+RefMetadataComponentId+IN
+('xyz000000000101','xyz000000000102',...)+OR+MetadataComponentId+IN
+('xyz000000000101','xyz000000000102',...)'
},
...
]
Source: build/src/api/dataset/orgcheck-api-dataset-customtabs.js
SELECT Id, DeveloperName, Type, Url, CreatedDate, Description,
LastModifiedDate, NamespacePrefix
FROM CustomTab
WHERE ManageableState IN ('installedEditable', 'unmanaged')
Dependencies for custom tabs are retrieved via the Tooling composite API using the
Ids from the CustomTab query. Batches up to 500 IDs, with up to 100 IDs per SOQL
call in each composite request.
Below is an example of such a composite query (version and IDs in url will vary):
POST /tooling/composite
[
{
method: 'GET',
url: '/services/data/v60.0/tooling/query?q=SELECT+MetadataComponentId,
+MetadataComponentName,+MetadataComponentType,+RefMetadataComponentId,
+RefMetadataComponentName,+RefMetadataComponentType+FROM
+MetadataComponentDependency+WHERE+RefMetadataComponentId+IN
+('xyz000000000001','xyz000000000002',...)+OR+MetadataComponentId+IN
+('xyz000000000001','xyz000000000002',...)'
},
{
method: 'GET',
url: '/services/data/v60.0/tooling/query?q=SELECT+MetadataComponentId,
+MetadataComponentName,+MetadataComponentType,+RefMetadataComponentId,
+RefMetadataComponentName,+RefMetadataComponentType+FROM
+MetadataComponentDependency+WHERE+RefMetadataComponentId+IN
+('xyz000000000101','xyz000000000102',...)+OR+MetadataComponentId+IN
+('xyz000000000101','xyz000000000102',...)'
},
...
]
Source: build/src/api/dataset/orgcheck-api-dataset-dashboards.js
SELECT Id, FolderName, FolderId, Title, DeveloperName, NamespacePrefix,
Description, CreatedDate, LastModifiedDate,
Type, LastViewedDate, LastReferencedDate,
DashboardResultRefreshedDate
FROM Dashboard
Source: build/src/api/dataset/orgcheck-api-dataset-documents.js
SELECT Id, Name, Url, BodyLength, ContentType, CreatedDate, Description,
DeveloperName, Folder.Name, Folder.Id, LastModifiedDate, NamespacePrefix
FROM Document
Source: build/src/api/dataset/orgcheck-api-dataset-emailtemplates.js
SELECT Id, Name, ApiVersion, IsActive, HtmlValue, Body, Markup, CreatedDate,
LastModifiedDate, FolderId, FolderName, Description, LastUsedDate,
TimesUsed, UiType, TemplateType, NamespacePrefix
FROM EmailTemplate
Source: build/src/api/dataset/orgcheck-api-dataset-fieldpermissions.js
SELECT Id, ParentId, SobjectType, Field, PermissionsEdit, PermissionsRead,
CreatedDate, LastModifiedDate
FROM FieldPermissions
Source: build/src/api/dataset/orgcheck-api-dataset-flows.js
SELECT Id, DeveloperName, ApiVersion, Description, ActiveVersionId,
LatestVersionId, CreatedDate, LastModifiedDate
FROM FlowDefinition
SELECT DefinitionId, COUNT(Id) NbVersions FROM Flow GROUP BY DefinitionId
Note: This type of access is performed by the method we call readMetadataAtScale().
This query is run with composite using batch size=1000.
Each Record describe is about a unique id (obviously).
Below is an example of such a composite query (version and id in url will vary):
POST /tooling/composite
[
{ method: 'GET', url: '/services/data/v60.0/tooling/sobjects/Flow/xyz000000000001' },
{ method: 'GET', url: '/services/data/v60.0/tooling/sobjects/Flow/xyz000000000002' },
{ method: 'GET', url: '/services/data/v60.0/tooling/sobjects/Flow/xyz000000000003' },
...
]
Source: build/src/api/dataset/orgcheck-api-dataset-groups.js
SELECT Id, Name, DeveloperName, DoesIncludeBosses, Type, RelatedId,
Related.Name, (SELECT UserOrGroupId From GroupMembers)
FROM Group
Source: build/src/api/dataset/orgcheck-api-dataset-homepagecomponents.js
SELECT Id, Name, Body, CreatedDate, LastModifiedDate, NamespacePrefix
FROM Homepagecomponent
WHERE ManageableState IN ('installedEditable', 'unmanaged')
Source: build/src/api/dataset/orgcheck-api-dataset-internalactiveusers.js
SELECT Id, Name, ProfileId, LastLoginDate, LastPasswordChangeDate,
NumberOfFailedLogins, UserPreferencesLightningExperiencePreferred,
UserPreferencesUserDebugModePref
FROM User
WHERE IsActive = true
AND ContactId = NULL
AND Profile.Id != NULL
SELECT Id, AssigneeId, PermissionSetId, PermissionSet.IsOwnedByProfile,
PermissionSet.PermissionsModifyAllData, PermissionSet.PermissionsViewAllData,
PermissionSet.PermissionsManageUsers, PermissionSet.PermissionsCustomizeApplication,
PermissionSet.PermissionsBypassMFAForUiLogins
FROM PermissionSetAssignment
WHERE Assignee.IsActive = true
AND Assignee.ContactId = NULL
AND Assignee.Profile.Id != NULL
SELECT UserId, LoginType, AuthMethodReference, Status, COUNT(Id) CntLogin
FROM LoginHistory
WHERE (LoginType = 'Application'
OR LoginType LIKE '%SSO%')
GROUP BY UserId, LoginType, AuthMethodReference, Status
Source: build/src/api/dataset/orgcheck-api-dataset-knowledgearticles.js
FIND { .salesforce.com OR .force.* } IN ALL FIELDS
RETURNING KnowledgeArticleVersion (Id, KnowledgeArticleId, ArticleNumber,
CreatedDate, LastModifiedDate, PublishStatus, Title, UrlName )
Source: build/src/api/dataset/orgcheck-api-dataset-lightningauracomponents.js
SELECT Id, MasterLabel, ApiVersion, NamespacePrefix, Description,
CreatedDate, LastModifiedDate
FROM AuraDefinitionBundle
WHERE ManageableState IN ('installedEditable', 'unmanaged')
Source: build/src/api/dataset/orgcheck-api-dataset-lightningpages.js
SELECT Id, MasterLabel, EntityDefinition.QualifiedApiName, Type,
NamespacePrefix, Description, CreatedDate, LastModifiedDate
FROM FlexiPage
WHERE ManageableState IN ('installedEditable', 'unmanaged')
Source: build/src/api/dataset/orgcheck-api-dataset-lightningwebcomponents.js
SELECT Id, MasterLabel, ApiVersion, NamespacePrefix, Description,
CreatedDate, LastModifiedDate
FROM LightningComponentBundle
WHERE ManageableState IN ('installedEditable', 'unmanaged')
Source: build/src/api/dataset/orgcheck-api-dataset-object.js
SELECT Id, DurableId, DeveloperName, Description, NamespacePrefix,
ExternalSharingModel, InternalSharingModel,
(SELECT Id FROM ApexTriggers),
(SELECT Id, MasterLabel, Description FROM FieldSets),
(SELECT Id, Name, LayoutType FROM Layouts),
(SELECT DurableId, Label, Max, Remaining, Type FROM Limits),
(SELECT Id, Active, Description, ErrorDisplayField, ErrorMessage,
ValidationName, NamespacePrefix, CreatedDate, LastModifiedDate
FROM ValidationRules),
(SELECT Id, Name, Url, LinkType, OpenType, Description,
CreatedDate, LastModifiedDate, NamespacePrefix
FROM WebLinks)
FROM EntityDefinition
WHERE QualifiedApiName = '<object_api_name>'
LIMIT 1
SELECT DurableId, QualifiedApiName, Description, IsIndexed
FROM FieldDefinition
WHERE EntityDefinition.QualifiedApiName = '<object_api_name>'
Source: build/src/api/dataset/orgcheck-api-dataset-objectpermissions.js
SELECT ParentId, Parent.IsOwnedByProfile, Parent.ProfileId,
SobjectType, CreatedDate, LastModifiedDate,PermissionsRead,
PermissionsCreate, PermissionsEdit, PermissionsDelete,
PermissionsViewAllRecords, PermissionsModifyAllRecords
FROM ObjectPermissions
Source: build/src/api/dataset/orgcheck-api-dataset-objects.js
SELECT DurableId, NamespacePrefix, DeveloperName, QualifiedApiName, ExternalSharingModel, InternalSharingModel
FROM EntityDefinition
WHERE KeyPrefix <> null
AND DeveloperName <> null
AND (NOT(KeyPrefix IN ('00a', '017', '02c', '0D5', '1CE')))
AND (NOT(QualifiedApiName like '%_hd'))
SELECT EntityDefinitionId, COUNT(Id) NbCustomFields
FROM CustomField
GROUP BY EntityDefinitionId
SELECT EntityDefinitionId, COUNT(Id) NbPageLayouts
FROM Layout
GROUP BY EntityDefinitionId
SELECT EntityDefinitionId, COUNT(Id) NbRecordTypes
FROM RecordType
GROUP BY EntityDefinitionId
SELECT TableEnumOrId, COUNT(Id) NbWorkflowRules
FROM WorkflowRule
GROUP BY TableEnumOrId
SELECT EntityDefinitionId, COUNT(Id) NbValidationRules
FROM ValidationRule
GROUP BY EntityDefinitionId
SELECT EntityDefinitionId, COUNT(Id) NbTriggers
FROM ApexTrigger
GROUP BY EntityDefinitionId
Source: build/src/api/dataset/orgcheck-api-dataset-objecttypes.js
Not accessing any data
Source: build/src/api/dataset/orgcheck-api-dataset-organization.js
SELECT Id, Name, IsSandbox, OrganizationType, TrialExpirationDate, NamespacePrefix
FROM Organization
LIMIT 1
Source: build/src/api/dataset/orgcheck-api-dataset-packages.js
SELECT Id, SubscriberPackage.NamespacePrefix, SubscriberPackage.Name
FROM InstalledSubscriberPackage
SELECT NamespacePrefix FROM Organization LIMIT 1
Source: build/src/api/dataset/orgcheck-api-dataset-pagelayouts.js
SELECT Id, Name, NamespacePrefix, LayoutType, EntityDefinition.DurableId,
EntityDefinition.QualifiedApiName, CreatedDate, LastModifiedDate
FROM Layout
SELECT LayoutId, COUNT(ProfileId) CountAssignment
FROM ProfileLayout
WHERE Profile.Name != null
GROUP BY LayoutId
Source: build/src/api/dataset/orgcheck-api-dataset-permissionsetlicenses.js
SELECT Id, MasterLabel, CreatedDate, LastModifiedDate, TotalLicenses, Status,
ExpirationDate, UsedLicenses, IsAvailableForIntegrations
FROM PermissionSetLicense
SELECT Id, LicenseId
FROM PermissionSet
WHERE IsOwnedByProfile = false
AND LicenseId <> NULL
SELECT AssigneeId, PermissionSet.LicenseId
FROM PermissionSetAssignment
WHERE Assignee.IsActive = TRUE
AND PermissionSet.LicenseId <> NULL
AND PermissionSet.IsOwnedByProfile = FALSE
ORDER BY PermissionSetId
Source: build/src/api/dataset/orgcheck-api-dataset-permissionsets.js
SELECT Id, Name, Description, IsCustom, License.Name, NamespacePrefix, Type,
PermissionsApiEnabled, PermissionsViewSetup, PermissionsModifyAllData,
PermissionsViewAllData, PermissionsManageUsers, PermissionsCustomizeApplication,
CreatedDate, LastModifiedDate
FROM PermissionSet
WHERE IsOwnedByProfile = FALSE
ORDER BY Id
SELECT Id, PermissionSetGroupId, PermissionSetGroup.Description
FROM PermissionSet
WHERE PermissionSetGroupId != null
ORDER BY Id
SELECT ParentId, COUNT(SobjectType) CountObject
FROM ObjectPermissions
WHERE Parent.IsOwnedByProfile = FALSE
GROUP BY ParentId
SELECT ParentId, COUNT(Field) CountField
FROM FieldPermissions
WHERE Parent.IsOwnedByProfile = FALSE
GROUP BY ParentId
SELECT PermissionSetId, COUNT(Id) CountAssignment
FROM PermissionSetAssignment
WHERE PermissionSet.IsOwnedByProfile = FALSE
AND Assignee.IsActive = TRUE
GROUP BY PermissionSetId
SELECT PermissionSetGroupId, PermissionSetId
FROM PermissionSetGroupComponent
WHERE PermissionSet.IsOwnedByProfile = FALSE
ORDER BY PermissionSetGroupId
Source: build/src/api/dataset/orgcheck-api-dataset-profilepasswordpolicies.js
This dataset uses the Metadata API to retrieve ProfilePasswordPolicy metadata.
readMetadata({
type: 'ProfilePasswordPolicy',
members: [ '*' ]
})
Source: build/src/api/dataset/orgcheck-api-dataset-profilerestrictions.js
SELECT Id FROM Profile
Note: This type of access is performed by the method we call readMetadataAtScale().
This query is run with composite using batch size=1000.
Each Record describe is about a unique id (obviously).
Below is an example of such a composite query (version and id in url will vary):
POST /tooling/composite
[
{ method: 'GET', url: '/services/data/v60.0/tooling/sobjects/Profile/xyz000000000001' },
{ method: 'GET', url: '/services/data/v60.0/tooling/sobjects/Profile/xyz000000000002' },
{ method: 'GET', url: '/services/data/v60.0/tooling/sobjects/Profile/xyz000000000003' },
...
]
Source: build/src/api/dataset/orgcheck-api-dataset-profiles.js
SELECT ProfileId, Profile.Name, Profile.Description, IsCustom, License.Name, NamespacePrefix,
PermissionsApiEnabled, PermissionsViewSetup, PermissionsModifyAllData, PermissionsViewAllData,
PermissionsManageUsers, PermissionsCustomizeApplication,
CreatedDate, LastModifiedDate
FROM PermissionSet
WHERE isOwnedByProfile = TRUE
ORDER BY ProfileId
SELECT Parent.ProfileId, COUNT(SobjectType) CountObject
FROM ObjectPermissions
WHERE Parent.IsOwnedByProfile = TRUE
GROUP BY Parent.ProfileId
SELECT Parent.ProfileId, COUNT(Field) CountField
FROM FieldPermissions
WHERE Parent.IsOwnedByProfile = TRUE
GROUP BY Parent.ProfileId
SELECT PermissionSet.ProfileId, COUNT(Id) CountAssignment
FROM PermissionSetAssignment
WHERE PermissionSet.IsOwnedByProfile = TRUE
AND Assignee.IsActive = TRUE
GROUP BY PermissionSet.ProfileId
Source: build/src/api/dataset/orgcheck-api-dataset-recordtypes.js
SELECT DeveloperName, NamespacePrefix, Id, Name, SobjectType, IsActive
FROM RecordType
SELECT Id FROM Profile
Note: This type of access is performed by the method we call readMetadataAtScale().
This query is run with composite using batch size=1000.
Each Record describe is about a unique id (obviously).
Below is an example of such a composite query (version and id in url will vary):
POST /tooling/composite
[
{ method: 'GET', url: '/services/data/v60.0/tooling/sobjects/Profile/xyz000000000001' },
{ method: 'GET', url: '/services/data/v60.0/tooling/sobjects/Profile/xyz000000000002' },
{ method: 'GET', url: '/services/data/v60.0/tooling/sobjects/Profile/xyz000000000003' },
...
]
Source: build/src/api/dataset/orgcheck-api-dataset-reports.js
SELECT Id, Description, DeveloperName, FolderName, Format, Name,
NamespacePrefix, CreatedDate, LastModifiedDate, LastRunDate,
LastViewedDate, LastReferencedDate
FROM Report
Source: build/src/api/dataset/orgcheck-api-dataset-staticresources.js
SELECT Id, Name, ContentType, CreatedDate, LastModifiedDate,
Description, NamespacePrefix
FROM StaticResource
This dataset uses the Tooling API to retrieve dependencies for static resources.
dependenciesQuery(<resourceIds>)
Source: build/src/api/dataset/orgcheck-api-dataset-userroles.js
SELECT Id, DeveloperName, Name, ParentRoleId,
(SELECT Id FROM Users WHERE IsActive = true AND ContactId = NULL AND Profile.Id != NULL)
FROM UserRole
WHERE PortalType = 'None'
Source: build/src/api/dataset/orgcheck-api-dataset-validationrules.js
SELECT Id, Active, Description, ErrorDisplayField, ErrorMessage, ValidationName,
EntityDefinition.QualifiedApiName, NamespacePrefix, CreatedDate, LastModifiedDate
FROM ValidationRule
Source: build/src/api/dataset/orgcheck-api-dataset-visualforcecomponents.js
SELECT Id, Name, NamespacePrefix, Description, CreatedDate, LastModifiedDate
FROM ApexComponent
Source: build/src/api/dataset/orgcheck-api-dataset-visualforcepages.js
SELECT Id, Name, NamespacePrefix, Description, CreatedDate, LastModifiedDate
FROM ApexPage
Source: build/src/api/dataset/orgcheck-api-dataset-weblinks.js
SELECT Id, Name, NamespacePrefix, Description, CreatedDate, LastModifiedDate
FROM WebLink
Source: build/src/api/dataset/orgcheck-api-dataset-workflows.js
SELECT Id, Name, NamespacePrefix, Description, CreatedDate, LastModifiedDate
FROM WorkflowRule