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

Salesforceでオブジェクトごとの添付ファイルレコードを取得する方法

Posted at

今回はSalesforceでオブジェクトごとの添付ファイルレコードを取得する方法について解説します

なおデータローダで一括で添付ファイルレコードを取得する方法はこちらです

ステップ1 開発者コンソールを開く

開発者コンソールを開きます

image.png

ステップ2 Query Editorをクリック

image.png

ステップ3 Query Editorに以下情報を貼り左下ボタン「Execute」をクリック

Select Id, LinkedEntityId, ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId IN (SELECT ID FROM Account)

image.png

今回はAccount(取引先)オブジェクトの添付ファイル有のレコードIDを取得しました

(SELECT ID FROM ~)後のオブジェクトAPI名を変更することで他オブジェクトの添付ファイル有のレコードIDを取得することが可能です。

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