0
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 1 year has passed since last update.

ナレッジの自動アーカイブされたレコードの取得方法

Posted at

Salesforceのナレッジは特殊なオブジェクト。通常のSOQLでは「Draft」と「Online」が取得できるものの、
システムよより自動的に「Archived」になった記事は取得できません。
※:手動でアーカイブしたレコードは取得できます。

下記のように 3つの条件を併用することでアーカイブレコードが取得できます。

select KnowledgeArticleId, id, versionnumber, PublishStatus from Knowledge__kav
where PublishStatus = 'Archived'
and IsLatestVersion = false
and KnowledgeArticleId = 'xxx'

0
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
0
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?