-
Notifications
You must be signed in to change notification settings - Fork 78
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
Retrieve components by a pattern does not work: sf project retrieve start -m 'ApexClass:MyApex*' #2522
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Hey @itaishmida, thanks for the Issue. I am not seeing this on my local machine. I am able to
A few things:
|
One last thing to check is that you're targeting an org that has those apex classes. The command you showed: |
This issue has been linked to a new work item: W-14284096 |
Huh, there are a few other oddities with the wildcard matching. Single character retrieves all(?) Classes
Two characters is more narrow, but still retrieves Classes I would not expect
Three characters gets what you'd expect
|
This issue is addressed in 2.21.7 (Dec 13, 2023). Thank you! |
Summary
Trying to use a new feature - retrieve components by a pattern
According to the docs - in current SF version and previous one, I can use * to get components by a pattern
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_project_commands_unified.htm#cli_reference_project_retrieve_start_unified
When I run a command like this, it does not get any component
`sf project retrieve start --metadata 'ApexClass:MyApex*'
Steps To Reproduce
according to the docs, if I run this command:
sf project retrieve start --metadata 'ApexClass:MyApex*'
it should get all apex classes with MyApex in their names
this does not work at all, I checked also
sf project retrieve start --metadata 'ApexClass:a*'
And I have many classes starting with a
Expected result
should retrieve all components with the pattern
Actual result
when I run the command, this is the result I get:
System Information
I use powershell on windows
The text was updated successfully, but these errors were encountered: