AppDB Error Handling
Good day to all.
Developing an app using the serverless technology, I've encountered a minor roadblock.
My dataset needs to have an ID column to use it as TransactionID, that is, on every submit I make to the database, it will work as an auto increment index on those fields (1 to N). Next call to the DOM and eventual submit, it will search the last ID and add 1 to it.
...
Ok the logic is all set up, but the help I need is in this:
On the first run, there is still no dataset created as there is no data submited. Thus, I need to evaluate if:
-Dataset is created, so I set up my ID to 1
-Dataset is created AND there is data in it, so I can search the max ID and add 1 to it in the createPost function
I hope I explained myself enough for someone here to help me. Any guidance is appreciated.
Let me know if you need further explanations.
Thanks in advance, have a great day.
Comments
-
Hello, have you tried looking in here for an answer?
https://developer.domo.com/docs/dev-studio/dev-studio-overview
If you can't find anything there, you can contact your Domo account team for assistance with this.
0
Categories
- All Categories
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 295 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 97 SQL DataFlows
- 608 Datasets
- 2.1K Magic ETL
- 3.8K Visualize
- 2.4K Charting
- 710 Beast Mode
- 50 App Studio
- 39 Variables
- 668 Automate
- 170 Apps
- 446 APIs & Domo Developer
- 45 Workflows
- 7 DomoAI
- 33 Predict
- 13 Jupyter Workspaces
- 20 R & Python Tiles
- 391 Distribute
- 111 Domo Everywhere
- 274 Scheduled Reports
- 6 Software Integrations
- 116 Manage
- 113 Governance & Security
- Domo Community Gallery
- 31 Product Releases
- 9 Domo University
- 5.3K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 103 Community Announcements
- 4.8K Archive