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
- 292 Workbench
- 4 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 95 SQL DataFlows
- 603 Datasets
- 2.1K Magic ETL
- 3.7K Visualize
- 2.4K Charting
- 697 Beast Mode
- 43 App Studio
- 39 Variables
- 658 Automate
- 170 Apps
- 441 APIs & Domo Developer
- 42 Workflows
- 5 DomoAI
- 32 Predict
- 12 Jupyter Workspaces
- 20 R & Python Tiles
- 386 Distribute
- 111 Domo Everywhere
- 269 Scheduled Reports
- 6 Software Integrations
- 113 Manage
- 110 Governance & Security
- 8 Domo University
- 30 Product Releases
- Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive