EXPERIMENTAL Update Mendix Custom widget, widgetId
For demo purposes only. No warrantees nor support is provided for this script.
- Update all occurrence of custom widgets with a give ID, update the ID to a new one.
- Dry run, without commit.
- Can only update the widget ID, no conversion of properties
> npm install
Set your settings
const username = "[email protected]";
const apikey = "xxxxxx-xxx-xxxx-xxxx-xxxxxx";
const projectId = "xxxxxx-xxx-xxxx-xxxx-xxxxxx";
const projectName = "MyAwesomeProject";
const revNo = -1; // -1 for latest
const branchName = null; // null for mainline
const originalWidgetId = "OldWidget.widget.OldWidget";
const newWidgetId = "NewWidget.widget.NewWidget";
const dryRun = false; // can run without committing
Run script:
> npm start