Swapping A field On Multiple Cards At The Same Time

Hello all,

I was wondering if it was possible to replace a field (lets call it field X) with another field (field Y), to all cards that use field X at the same time. Currently have the need to do this for over 100 cards and it would be great if there was a way to do this all at the same time. 

 

For additional context, this is not a shared beastmode. I know in a shared beastmode I can just edit and save the existing beastmode and it would apply across all cards using the same dataset. 

 

Any help to make this task more efficient would be appreciated.

Comments

  • MarkSnodgrass
    MarkSnodgrass Portland, Oregon 🟤

    If your datasset is powered by a Magic ETL, this is pretty easy. Just add a Select Columns tile and alias the field that you want to use as the name of the field that is currently being used in your cards. Then, rename the current field to something else, or just remove it in the Select Columns tile. Make sure you match the name exactly, as it is case sensitive. 

  • So this is the main problem, we are doing a name change.

  • GrantSmith
    GrantSmith Indiana 🔴

    @user052734 

    Have you looked into using the Java CLI tool - https://knowledge.domo.com/Administer/Other_Administrative_Tools/Command_Line_Interface_(CLI)_Tool

     

    That may be an easier way to update the beast modes rather than going through each card.

  • Hi thanks for this, I will look into this. Any additonal contect that you can provide as to the steps that you would take when using the tool? Admittedly I'm at a novice level when it comes to all this stuff, I pretty much went from being a stakeholder requesting things, to a semi power user for all the front end stuff, and now I'm trying to learn more of the backend dataset/admin stuff. 

  • jaeW_at_Onyx
    jaeW_at_Onyx Budapest / Portland, OR 🟤

    Java CLI will not alter beast modes saved to a dataset @GrantSmith  (yet AFAIK).

     

    you can backup cards which will give you the json blob / representation of a card.  then you can use any text editor to do a string replace of card names.

     

    then upload the card definition back to Domo.  

     

    I think @MarkSnodgrass 's method is ... the easier method if you dn't have to do a column rename.

This discussion has been closed.