How to get Flow versions for a brownfield org? #1305
-
Hi, First of all, thank you very much for this amazing tool! 🙏 I'm generating org documentation for a brownfield org. I'm not getting the Flow version history (which looks super cool in the presentations). If I understand correctly, that's because it only works if you have the pipeline and the history of commits for every Flow version, as Hardis generates the diffs between commits, right? Thank you again! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@max-makarenko-immersive thanks for your thanks :) As you guessed, the flow history is built from the git history, so if there has never been any git... this is currently not covered by sfdx-hardis ^^ but if you install sfdx-hardis monitoring, as it creates a new commit during the daily backup, everytime your flows will be updated in the future, you will see it in the generated documentation :) Another solution could be to play with typescript to update the sfdx-hardis command so it can be based on tooling API and not metadata... but i'm not even sure this is possible, because as far as i know you can get the XML of the latest version of the flow, but not the XML of the previous ones 😇 |
Beta Was this translation helpful? Give feedback.
@max-makarenko-immersive thanks for your thanks :)
As you guessed, the flow history is built from the git history, so if there has never been any git... this is currently not covered by sfdx-hardis ^^
but if you install sfdx-hardis monitoring, as it creates a new commit during the daily backup, everytime your flows will be updated in the future, you will see it in the generated documentation :)
Another solution could be to play with typescript to update the sfdx-hardis command so it can be based on tooling API and not metadata... but i'm not even sure this is possible, because as far as i know you can get the XML of the latest version of the flow, but not the XML of the previous ones 😇