-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Support Analytics External Data API #14
Comments
@vancelopez Thanks for the request. I'm not very familiar with the Analytics External Data API. It looks like a pretty straightforward HTTP request of a CSV file with JSON header. Do you have an example of the type of CSV data you'd like to upload? I'm not sure what the type of file you want to upload would look like. Thanks. |
Thanks, @StevenMMortimer for the quick reply. The CSVs I upload (via web interface) are basic datasets (i.e. The metadata JSON could be created programmatically referencing Analytics External Data Format. However, it would also be nice to have the option to upload a user defined JSON file - I've done that with the large dataset because there are over 50 columns and so it becomes cumbersome to define datatypes using the point and click interface. |
@vancelopez I did some testing and realized that you can already use the salesforcer package to push data to the Analytics External Data API because it involves just creating a few records as you would normally do with any other object in Salesforce. Below is an example for you to follow. I'll continue working on creating a specific function in salesforcer that will reduce this routine to a single function that will also do the more exciting things like inferring the data structure's JSON and stuff like that. However, this should be enough for you to start uploading your own data via the API. Let me know if you have any issues.
Here is a screenshot of what the |
Incredible. Thanks @StevenMMortimer. I will test. |
@StevenMMortimer Successfully uploaded my own data to Analytics using your example. Thanks for the work on this! I already had a metadata JSON text file, so included it in the header record with: I also tried first reading in the JSON using |
Salesforce.com documentation.
Would be great to be able to add Analytics datasets via API.
Particular use case: pull data from onsite SQL Server, transformations, push via salesforcer to Analytics.
The text was updated successfully, but these errors were encountered: