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.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive