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.5K Connect
- 1.2K Connectors
- 296 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 614 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 729 Beast Mode
- 53 App Studio
- 40 Variables
- 677 Automate
- 173 Apps
- 451 APIs & Domo Developer
- 45 Workflows
- 8 DomoAI
- 34 Predict
- 14 Jupyter Workspaces
- 20 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 121 Manage
- 118 Governance & Security
- Domo Community Gallery
- 32 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive