function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
garagara 

documentのBody項目をselect句に含めた場合の挙動について

Salesforceのデータを、外部アプリケーション(.NET)から呼び出す処理についての質問です。

下記の二つのSOQLを用意し、それぞれ binding.query で実行したところ・・・
 A)select Id from document
 B)select Id, Body from document

Aを実行したとき、queryResult.records.Size は 25 でした。
Bを実行したとき、queryResult.records.Size は 1 でした。

なぜAとBの取得件数が異なるのか、わかりません。
Body項目をselect対象に含めると、1レコードしか取得できない、といった仕様なのでしょうか?

ご存知の方がいらっしゃいましたら、ご助言ください。

Best Answer chosen by Admin (Salesforce Developers) 
minoawminoaw

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_query.htm

 

 

When querying for fields of type Base64 (see base64), the query response object returns only one record at a time. You cannot alter this by changing the batch size of the query() call. 

 とあります。

Base64型の項目を含めると1度に1レコードしか取得できなくなるようですね。

All Answers

minoawminoaw

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_query.htm

 

 

When querying for fields of type Base64 (see base64), the query response object returns only one record at a time. You cannot alter this by changing the batch size of the query() call. 

 とあります。

Base64型の項目を含めると1度に1レコードしか取得できなくなるようですね。

This was selected as the best answer
garagara

minoaw様

仕様だったのですね。
資料のご提供、どうもありがとうございました。
大変参考になりました。