Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

force:source:retrieve add append mode or star operator. #857

Closed
PawelWozniak opened this issue Feb 18, 2021 · 3 comments
Closed

force:source:retrieve add append mode or star operator. #857

PawelWozniak opened this issue Feb 18, 2021 · 3 comments
Labels
feature Issue or pull request for a new feature

Comments

@PawelWozniak
Copy link

PawelWozniak commented Feb 18, 2021

What are you trying to do
Today I tried to download newly created workflow rule by using:

sfdx force:source:retrieve -m "WorkflowRule:Case.MyRule"
sfdx force:source:retrieve -m "WorkflowAlert:Case.MyEmailAlert"

And found out that those commands are overwriting the same file Case.workflow-meta.xml so or I have Rule or Alert there.
Then I executed both together -m "WorkflowRule:Case.MyRule, WorkflowAlert:Case.MyEmailAlert" and got both in that file.
However this still an issue when you have larger number of workflow rules as this will overwrite xml file with only those retrived metadata.

Describe the solution you'd like
I would like to have append mode so in case that I have already Case.workflow-meta.xml file with some rules by running sfdx command I want to append at the end my newly created WR.

Describe alternatives you've considered
As an alternative I would like to use star operator.
sfdx force:source:retrieve -m "WorkflowRule:Case.*"
in order to get all rules in this file so git can figure out what is new. Assuming that order of rules won't be mixed.

Additional context
Finally i solved that by using code below which downloaded all WRs with their actions.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <version>51.0</version>
    <types>
        <members>Case</members>
        <name>Workflow</name>
    </types>
</Package>

The same issue is with Custom Labels where retrieving one is overwriting whole file.

@PawelWozniak PawelWozniak added the feature Issue or pull request for a new feature label Feb 18, 2021
@git2gus
Copy link

git2gus bot commented Feb 18, 2021

This issue has been linked to a new work item: W-8907261

@github-actions
Copy link

Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments.

@WillieRuemmele
Copy link
Member

duplicated and tracked here : #2363

@WillieRuemmele WillieRuemmele closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Issue or pull request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants