Struggling writing data from Pro-code app to dataset (appending data)

Attached is part of my app project where I am writing out a row to my dataset upon submittion by the user.
Goal is to track the submission for use in reporting and other automations.
Row will be used in a workflow to fire off API requests and ultimately submit a Jira ticket for the user who submits this in a secure process.
Attaching:
- Manifest image
- App.js snippets
- Calling the datasets - Even went as far as hardcoding them
- Writing the output
- Postman - dataset schema
- Postman - Results from dataset creation
- Inspection Console Log for "Submit" function.
I am sure it is simple somewhere, but I am not finding how after days of beating on it.
Answers
-
Any thoughts or ideas are welcome!
0 -
You are using: domo.post(
/data/v1/${datasetId}
, [submission])
but I don't see where you are running this as a brick or app. Have you deployed this as a app within Domo?
We can't see the whole manifest in your screenshot. Do you have it set to write? Otherwise, it might be treated as read-only."dataSets": [
{
"name": "submissions",
"id": "4924fe6b-b1c2-4182-abea-dee15d9c2702",
"type": "WRITE"
}
]Right before your screenshot marked as "This is killing me!", maybe add another console debug statement to verify the datasetID is valid. If you don't get an id response, it would indicate Domo didn't load the dataset properly from the manifest.
const datasetId = datasets['submissions'];
console.log('Submissions dataset ID:', datasetId);** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
For the manifest, I used the GUI to connect them. Did not see in any of the documentation about the type of WRITE, I missed that unless it is somewhere else.
Here is the GUI and the JSON
and I clearly see it is not there in the Json.
For the dataset verification, the console log is showing the correct ID as seen in the third green check below.
Next test: Update manifest to ensure write. Will report back
0 -
Have you tried using the Rest API with append?
POST https://api.domo.com/v1/datasets/{datasetId}/data?updateMethod=APPEND
You mentioned looking for reference page. https://developer.domo.com/docs/tools/domo-js
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
ok, modified manifest to add the write
just got the error above again.
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 665 Datasets
- 120 SQL DataFlows
- 2.3K Magic ETL
- 827 Beast Mode
- Visualize
- 2.6K Charting
- 90 App Studio
- 46 Variables
- Automate
- 198 Apps
- 488 APIs & Domo Developer
- 97 Workflows
- 24 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 119 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 145 Governance & Security
- 13 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive