I know its not best practice (but I need to develop in live environment as need live data). Currently I delevlop dev dashabards and deploy to production version by copy/pasting json.
This works fine - but I know it does not transfer condional formatting (which I have to recreate manually)
Is there a 'proper way of doing this - firstly within same org and in the future between different environments. Needs to move anatrics deployemtns to same release/version control methodology as the rest of out development.
Have looked at Saleforce CLI with Anytics plug-in and used CaptG{T/Claude - but cannot find a definitive answer.
Many years ago I was given a method using workbench
To extracxt metadata from the dashboard
/services/data/v66.0/wave/assets/0FKWS0000003PUv4AM/xmds/asset
Then manually removing everything apart form conditionalFormatting within dimensions and then suurounding by {
"xmd":
}
Deployment of data as floows to live dashboard
/services/data/v66.0/wave/dashboards/0FKWS0000003PWX4A2
There has to be a better/safer/repeatable way when migrating anaytics assets. Any ideas?
I am using Salesforce CLI with the Analytics plugin within VS Code. I have just retested - by making a change to the orginla Db including new widgets and chges to CF - anbd it seem to work. Either a ching issue - or the fact I was chnging the xmd manually. All good