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
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 656 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 813 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 81 App Studio
- 45 Variables
- 771 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 77 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive