rdomo package - dictate schema
I recently encountered a parsing error when creating a dataset using rdomo, where a text field was being interpreted as a date field. Misinterpreting datatypes when pushing to Domo or retrieving from Domo happens, but this was the first time where I couldn't find a solution. Through support, we were able to create a dataset where we could dictate the schema first, then upload the data. (Code example below). It would be nice if this was another parameter in the ds_create function. Something similar might also be beneficial in the ds_get function so we can tell R what datatypes are expected.
url <- "https://api.domo.com/v1/datasets"
payload <- list(
name = "Domo Support Case R",
description = "Dev",
rows = 0,
schema = list(
columns = list(
list(type = "Long", name = "Id"),
list(type = "STRING", name = "File_Name")
)
)
)
payload_json <- toJSON(payload, auto_unbox = TRUE)
Send request to create datasetresponse <- POST(
url,
body = payload_json,
add_headers(
'Authorization' = paste('Bearer', access_token),
'Content-Type' = 'application/json',
'Accept' = 'application/json'
),
encode = "json"
)
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 622 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 744 Beast Mode
- 58 App Studio
- 41 Variables
- 686 Automate
- 176 Apps
- 453 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 395 Distribute
- 113 Domo Everywhere
- 276 Scheduled Reports
- 6 Software Integrations
- 125 Manage
- 122 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive