1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

普段使用しないSOQL

Posted at

レコードタイプID:

SELECT RecordTypeId, RecordType.Name, RecordType.DeveloperName FROM xx

ログ削除:

SELECT Id, StartTime, LogUserId, LogLength, Location FROM ApexLog

プロファイル:
SELECT Profile.Name, Count(Name) Cnt FROM User WHERE IsActive = true GROUP BY Profile.Name ORDER BY Profile.Name
プロファイル:

SELECT Name FROM Profile WHERE Id IN ( SELECT ProfileId FROM User WHERE IsActive = true ) ORDER BY Name

スケジュール監視:

SELECT Id(jobId),CronExpression,CronJobDetailId,EndTime, NextFireTime, OwnerId, PreviousFireTime, StartTime,State,TimesTriggered,TimeZoneSidKey FROM CronTrigger

ジョブ詳細:

SELECT Id, Name, JobType FROM CronJobDetail
レコードタイプID:SELECT Name, Id, SobjectType FROM RecordType Where SobjectType='Account'
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?