Skip to main content
Prerequisites
  • Access to Domo’s Pro-Code Editor: Ensure that Pro-Code Editor is enabled in your Domo instance. After 11/13/2024 this will be automatically enabled.
  • Access to any dataset referenced in the Brick being migrated.
You can convert your Brick semi-automatically with the “Convert to App” button or manually by copying and pasting.

1. Start the conversion


  1. Edit your Brick
  2. Click the “Convert to App” button in the header.
button
Dataset Configuration Transfer Notice that upon converting, the datasets you had wired previously have automatically been transferred to your manifest.json.

2. Replace window.datasets


Bricks use the window.datasets global property to execute a Configuration-driven design paradigm, while the Pro-Code Editor leverages a manifest.json file to implement a Metadata-driven design strategy.To make the switch, you’ll need to replace any usages of window.datasets with the corresponding dataset aliases (found in your manifest.json).

The Lowest-Touch Approach


The simplest approach is to replace all instances of window.datasets with an array of strings corresponding to your aliases.So changevar datasets = window.datasets;to something likevar datasets = ['sales', 'profit'];As long as you’ve kept the order the same, that should be sufficient.

Conclusion:


After you’re done, test your application to ensure normal functionality, and ensure all data is able to be accessed correctly.