I need to retrieve older inactive version of flow from UAT and push that into Dev sandbox.
How can we do that in VS code?
#Salesforce Developer
1 respuesta
To retrieve an older, inactive version of a Flow from your UAT environment and deploy it to your Development Sandbox using Visual Studio Code (VS Code) and Salesforce CLI (SFDX)
Sample code is below and replace the flow API.
sfdx force:source:retrieve -m "Flow:<Flow_API_Name>-<Version_Number>
By referring the below links, you can successfully retrieve and deploy a specific version of a Flow between Salesforce environments using VS Code and SFDX.
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_visual_workflow.htm?utm_source=chatgpt.com
https://www.reddit.com/r/SalesforceDeveloper/comments/ty8prf/is_possible_to_deploy_a_specfic_version_of_a_flow/?utm_source=chatgpt.com
https://docs.copado.com/articles/#!copado-ci-cd-publication/how-to-deploy-flows-using-salesforce-api-version-v-44-0Thanks,
A. Gobinath