Adding a new dataset after creating a Custom App
Hi all,
I created a custom app in Domo and originally when it was created, it only had one dataset in the manifest.json file "Cars." I wanted to add another dataset to the app and so I modified the manifest file to include "users" - Screenshot 1. I confirmed the new dataset is reflected in the brick - Screenshot 2. In my javascript file (SS3), I went ahead and queried the data and logged the results in the console. I ended up with a Bad Request Error (SS4).
I'm not really sure what I'm doing wrong here. Any guidance would help!
SS1
SS2
SS3 / SS4
Answers
-
It looks like Domo doesn't know of the alias for "Users".
The issue might just be with the uploaded manifest to Domo. You need to make sure that the manifest in the build file has been updated as well.
I can also hop on a call with you and see if we can debug this if that doesn't work.
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.** Was this post helpful? Click 💡/💖/👍/😊 below. **
** If it solved your problem. Accept it as a solution! ✔️ **
Or do you need more help? https://calendly.com/matthew-kastner/15-minute-chat
Did I help you out? Feedback is priceless and will help me more than you know.Write a review!1 -
Is there a way I can confirm the changes I did in the manifest file? I figured the update would get captured once I published to my instance but that doesn't seem like the case from the error.
0 -
There are some steps to uploading from your local environment that are a bit of a pain so I built some copy and paste scripts to make new deployments easier.
Add the following 3 lines to your project's "package.json" file:"upload": "cd build && domo publish && cd ..",
"preupload": "cp manifest.json build/ && cp thumbnail.png build/ && echo 'manifest.json and thumbnail.png copied to build folder'",
"deploy": "npm run build && npm run preupload && npm run upload"
If you add these 3 then you can just run
npm run deploy
and everything will be put in the right places and uploaded to Domo.Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.** Was this post helpful? Click 💡/💖/👍/😊 below. **
** If it solved your problem. Accept it as a solution! ✔️ **
Or do you need more help? https://calendly.com/matthew-kastner/15-minute-chat
Did I help you out? Feedback is priceless and will help me more than you know.Write a review!0 -
@MattTheGuru - great points, but if he is using the default vanilla JS hello world template example rather than the React template, there isn't going to be a package.json file or a build step.
@NCRivera - your dataset definition in the manifest looks right to me. If you run domo publish after saving that file, you should be able to see multiple dataset connections in the wiring screen. I'd check that first. If it doesn't seem to have added the additional alias, then you may want to doublecheck that you're id in the manifest file is right and that you're publishing to the right App Design.
I'd also be happy to jump on a call and have a look if you're still stuck.
1 -
@NoahFinberg is correct^
If you DM me and/or share a copy of the code I can try to load it on my sides and see what works and does not.** Was this post helpful? Click 💡/💖/👍/😊 below. **
** If it solved your problem. Accept it as a solution! ✔️ **
Or do you need more help? https://calendly.com/matthew-kastner/15-minute-chat
Did I help you out? Feedback is priceless and will help me more than you know.Write a review!0 -
Thanks, all! I will try to respond on my computer with the code as soon as I can!
0 -
Not sure where this landed but in case someone stumbles upon this post these are the steps I've found I have to take when adding a new dataset to the manifest:
- Publish the app to Domo
- Open the apps wiring screen in domo by editing the card it is on
- Make sure the new dataset is showing, and then hit the Save & Finish button.
Once I go through that process I'm able to make calls to the new dataset in the development environment without any issues.
1
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