Apexデータローダーで Export (抽出) 条件に使用できる日付フォーマットについて説明します。
【質問】
Apex データローダで Export (抽出)条件に使用できる日付フォーマットについて教えて下さい。
【回答】
以下のフォーマットになります。
・日付型: YYYY-MM-DD
・日付時間型: YYYY-MM-DDTHH:mm:ssZ もしくは YYYY-MM-DDTHH:mm:ss.SSSZ (※「Z」はグリニッジ標準時(GMT)をあらわします)
<例1:「2006年9月1日」以降に完了予定日が設定されている商談のIDを抽出>
1) データローダ起動>[Export]ボタンをクリック>IDとパスワードを入力>[Log in]ボタンをクリック
2) "Step 2: Select Data Objects" で「商談 (Opportunity)」を選択して、[Next >]ボタンをクリック
3) "Step 3: Edit your Query" で "Choose the query fields below" の「Id」をチェック
4) 同ステップの "Create the where clauses to your query below" で以下の値をセットして、[Add condition]ボタンをクリック
・Fields:「CloseDate」を選択
・Operation:「greater than or equals」を選択
・Value:「2006-09-01」を入力
5) 以下のクエリが出力されます。
クエリの日付値「2006-09-01」に単一引用符(‘)が含まれている場合にはこれを取り除いて下さい。
(※単一引用符 (‘) が含まれる場合、Export 実行時にエラーが発生します)
<単一引用符が含まれたクエリ> Select Id FROM Account WHERE CreatedDate >= '2006-09-01'
<単一引用符を除去> Select Id FROM Account WHERE CreatedDate >= 2006-09-01
6) [Finish]ボタン、[はい]ボタンをクリック
<例2:「2006年9月1日 午前9時」以降に作成された取引先のIDを抽出>
1) データローダー起動>[Export]ボタンをクリック>IDとパスワードを入力>[Log in]ボタンをクリック
2) "Step 2: Select Data Objects" で「取引先 (Account)」を選択して、[Next >]ボタンをクリック
3) "Step 3: Edit your Query" で "Choose the query fields below" の「Id」をチェック
4) 同ステップの "Create the where clauses to your query below" で以下の値をセットして、[Add condition]ボタンをクリック
・Fields:「CreatedDate」を選択
・Operation:「greater than or equals」を選択
・Value:「2006-09-01T00:00:00Z」を入力
※ 日本時間(JST)の「2006年9月1日 午前9時」は、GMTの「2006年9月1日 午前0時」に相当します
5) 以下のクエリが出力されます。
クエリの日付値「2006-09-01T00:00:00Z」に単一引用符 (‘) が含まれている場合にはこれを取り除いて下さい。
(※単一引用符(‘)が含まれる場合、Export 実行時にエラーが発生します)
<単一引用符が含まれたクエリ> Select Id FROM Account WHERE CreatedDate >= '2006-09-01T00:00:00Z'
<単一引用符を除去> Select Id FROM Account WHERE CreatedDate >= 2006-09-01T00:00:00Z
6) [Finish]ボタン、[はい]ボタンをクリック
【対象製品】
000385034

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.