CRM Analytics 内のデータセットは、InsightsExternalData オブジェクトを使用してアクセス、作成、変更できます。
InsightsExternalData オブジェクトは、外部データのアップロードを設定および管理するためのもので、アップロード対象データの各部分を保持する InsightsExternalDataPart オブジェクトと併せて使用されます。
この例では、CSV ファイルの外部データを使いアナリティクスにデータセットを作成するために、ワークベンチを使用しました。
前提条件:
※使用したファイルは、この記事に .zip 形式で添付されています。(InsightsExample.zip)
| データフロー | DataflowName (DataflowName) |
| 説明 | 説明 (説明) |
| EdgemartAlias | DataSetName (MyExternalDataset) |
| EdgemartLabel | DataSetLabel (MyExternalDataset) |
| FileName | 外部データファイル名 (InsightsDataset) |
| 形式 | Csv |
| MetadataJson | メタデータ JSON ファイルの Base64 エンコード文字列 (ファイルの内容 - MetaDataJson Base64 エンコード) |
| 操作 | Upsert |
| DataFile | Base64 エンコードされたデータファイルの文字列 (ファイルのコンテンツ - InsightsDataset Base64 エンコードファイル) |
| DataLength | |
| InsightsExternalDataId | 上記のステップで作成した InsightsExternalData オブジェクトの ID |
| PartNumber | データファイルの部品番号 (1) |
7.データファイルが巨大な場合、10 MB のチャンクに分割し、PartNumber を使用してファイルの順序を指定する必要があります。各チャンクには個別の InsightsExternalDataPart ファイルが挿入されている必要があります。
8. すべての部品ファイルが挿入されたら、親の InsightsExternalData レコードを更新してデータを処理する必要があります。
9. [更新] > [InsightsExternalData] に移動し、先ほど保存した ID を使用して、次のフィールドでレコードを更新します。
Action: プロセス
10. 更新が成功したら、[Analytics Studio] > [データマネージャー] に移動して、使用したデータセットのエイリアスの名前で送信されたジョブを確認できます。ジョブが正常に実行されると、作成されたデータセットを確認できます。
同様に、InsightsExternalData オブジェクトで [追加]、[削除]、[上書き] などの他の操作を使用します。
詳細は、次のドキュメントを参照してください。
000384582

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.