1
1

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 5 years have passed since last update.

SalaesforceのDataloaderで日付を条件にExportしたらエラーになった

Posted at

タイトルの通りの上手くいかなかったので、備忘録としてまとめておきます。

やったこと

DataloaderのStep3 Edit your Queryで以下のように取得しようとしました。

Select Id, Name, email__c FROM Sample_Object__c WHERE date__c = 2019/10/31 

結果

こんなエラーが出ました


sample_object__c WHERE date__c=2019/10/31
                        ^
ERROR at Row:1:Column:77
unexpected token:'/'

いけなかった点

Dataloaderの日付型では"/"は受け付けていないようです。
Salesforceの画面ではできるのにね…

修正点

そんな訳でこんな感じで書けば動きます。

Select Id, Name, email__c FROM Sample_Object__c WHERE date__c = 2019-10-31 

変更箇所
"2019/10/31" ⇒ "2019-10-31"

些細なことで手間取ると悔しいですよね…

1
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?