CSV file import via Python DOMO API SDK
Hello, I'm working to get an automated import of a .csv file.
It is currently working using the "datasets.data_import_from_file" under the Datasets module in the DOMO SDK.
The problem I've facing is that this import is performing a replace where I need an append operation.
Is there an APPEND parameter I can add to make this happen? Thank you!
def datasets(self):
self.logger.info("\n**** Domo API - DataSet Examples ****\n")
datasets = self.domo.datasets
dataset_id = '*******-****-****-****-******'
csv_file_path = 'C:/Storage/raw_export.csv'
datasets.data_import_from_file(dataset_id, csv_file_path)
self.logger.info("Uploaded data from a file to DataSet " + str(dataset_id))
Comments
-
Can someone provide some help with this?
0 -
Hi,
Did you get any feedback on your question? I have similar need where I want to automatically upload the data in append/replace mode using python. If you managed to solve this problem, i would greatly appreciate if you could share the same. Sorry, I am a bit new to Python and trying to figure out a way to make it work. Thanks in advance!
0 -
Sorry, bit late to the party. The method data_import_from_file provides an argument called update_method which takes a value of 'APPEND' or 'REPLACE'. As you've already seen, REPLACE is the default value.
So you want:
data_import_from_file(dataset_id, filepath, update_method='APPEND')
Hope that helps.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 755 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive