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.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive