Programatically update/delete cards
I have a python script which I use in conjuntion with the DomoStats Activity Log, Python SDK, to classify cards that are abandoned or otherwise need to be deleted. In our instance, this is close to 1000 cards. I do not see a way to interact with cards at the API level. Additionally, I am trying to rename the cards that we are keeping to fit a standardized naming format and autofill in the description field.
I really do not want to manually do this for all of these cards. Is there a way to programmatically achieve this?
Best Answers
-
Have you investigated the CLI tool? If you have the list of cards you want deleted, the CLI should do the trick.
I think you would need to reach out to your Customer Success Manager to get the install file. Ask them for the Command Line Interface tool.
0 -
Hi @user09644
As for using the pydomo SDK it doesn't expose the APIs for cards at this time. As such they're not supported. As @ST_-Superman-_ mentioned you could attempt to utilize the Java CLI and the 'delete-card' command. You might want to also use the 'backup-card' command first in case you accidentally remove a card you wanted to keep. There's also a 'rename-card' command to rename cards.
You can create a script of commands to run via the CLI and pass it in as parameter so you don't have to run it multiple times.
java -jar domoUtil.jar -e "path_to_file.txt"
You can download the CLI tool from Admin -> Tool Downloads in your instance.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0
Answers
-
Have you investigated the CLI tool? If you have the list of cards you want deleted, the CLI should do the trick.
I think you would need to reach out to your Customer Success Manager to get the install file. Ask them for the Command Line Interface tool.
0 -
Hi @user09644
As for using the pydomo SDK it doesn't expose the APIs for cards at this time. As such they're not supported. As @ST_-Superman-_ mentioned you could attempt to utilize the Java CLI and the 'delete-card' command. You might want to also use the 'backup-card' command first in case you accidentally remove a card you wanted to keep. There's also a 'rename-card' command to rename cards.
You can create a script of commands to run via the CLI and pass it in as parameter so you don't have to run it multiple times.
java -jar domoUtil.jar -e "path_to_file.txt"
You can download the CLI tool from Admin -> Tool Downloads in your instance.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
Thanks for the comments. I'm trying to authenticate into the Domo CLI. I am able to successfully do it in my developer sandbox instance, but can not in the production version of Domo. I am a major-domo and not an admin. Is there anything special that I need to do to authenticate if my org uses SSO? For the test case authenticating into the developer sandbox I issued and used a token.
0 -
You need a Token for authentication which, depending on your permissions you or an Admin would need to create on your production environment.
Note that the CLI will authenticate as the user who created the token
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
Got it - I was following along in the documentation and the first example made it seem like I could connect without a token. Thanks!
Example
connect -u jim.smith@xyzcompany.com -p abc123 -s xyzcompany.domo.com
0 -
For clarification for others who might read this thread.
Username and password authentication with the CLI isn't an option with Single Sign On (SSO) as you're not authenticating with Domo but rather your own system. If you used direct sign on then username and password authentication is an option.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 621 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 744 Beast Mode
- 58 App Studio
- 41 Variables
- 686 Automate
- 176 Apps
- 453 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 395 Distribute
- 113 Domo Everywhere
- 276 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 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