Datasets within CRM Analytics can be accessed, created, and modified using the InsightsExternalData Object.
The InsightsExternalData object enables you to configure and control external data uploads and is used with the InsightsExternalDataPart object, which holds the parts of the data to be uploaded.
We used workbench in this example to create the dataset in analytics using CSV file external data.
Pre-Requisites:
* Files used is attached to this article in .zip format. (InsightsExample.zip)
| Dataflow | DataflowName (DataflowName) |
| Description | Description (Description) |
| EdgemartAlias | DataSetName (MyExternalDataset) |
| EdgemartLabel | DataSetLabel (MyExternalDataset) |
| FileName | External Data file name (InsightsDataset) |
| Format | Csv |
| MetadataJson | Base64 encoded string of metadata JSON file (Contents from the file - MetaDataJson Base64 Encoded) |
| Operation | Upsert |
| DataFile | Base64 encoded string of data file (Content from file- InsightsDataset Base64 Encoded file) |
| DataLength | |
| InsightsExternalDataId | Id of InsightsExternalData object we created in the above step |
| PartNumber | Part number of the data files (1) |
7.If your data file is huge, you need to chunk it into parts of 10 MB chunks and use PartNumber to specify the order of the files, each chunk needs a separate InsightsExternalDataPart file inserted.
8. Once all the part files are inserted we need to update the parent InsightsExternalData record to process the data.
9. Now go to update > InsightsExternalData > use the Id we stored earlier and update the record with below fields.
Action: Process
10. Once the Update is successful navigate to Analytics Studio > Data Manager and you can see a job submitted with the name of the dataset alias we used, once the job runs successfully you can see the dataset created.
Similarly, you use other Operation's on the InsightsExternalData object like Append, Delete, Overwrite etc.
For more information, refer to the following documentation.
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.