1

I usually use SFDX to retrieve all of the metadata from my sandbox. I usually work on this in VSCode.

Right now I'm trying to use SFDX in VSCode to retrieve a flow so I can test that flow in another sandbox.

However, when I retrieve the data using "sfdx force:mdapi:retrieve" there is no associated metadata/xml for that flow.

And then during deployment, it says "MissingContentOrMetadataFile: Expected file at path: ..."

Does anyone know how I might properly move this flow from one sandbox to another? What is the best way?

Note: The Flow is not active.

1

before retrieve and push the flows , you have to connect source org and target org from vscode using cli commands. then use below commands.

retrieve the flow from source org by using below command:

sfdx force:source:retrieve -m Flow:yourflowName -u sourceorg

push the source in to target org using below command.

 sfdx force:source:deploy -u targetorg

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.