hardisgroupcom / sfdx-hardis

Swiss-army-knife Toolbox for Salesforce. Orchestrates base commands and assist users with interactive wizards to make much more than native sfdx + Allows you to define a complete CI/CD Pipeline and Schedule a daily Metadata backup & monitoring of your orgs
https://sfdx-hardis.cloudity.com
GNU Affero General Public License v3.0
210 stars 40 forks source link

hardis:org:user:activateinvalid not working #876

Closed paferpotest closed 3 days ago

paferpotest commented 3 days ago

Hi,

After running the option to activate users with .invalid, I don't get a popup asking about which users/profiles I want to activate.

Instead, the process runs with a wrong query and doesn't found any users:

sfdx-hardis] Querying User records with email ending with .invalid... [sfdx-hardis] SOQL REST: SELECT Id FROM Profile WHERE Name IN ('') on https://testpablo.sandbox.my.salesforce.com/ [sfdx-hardis] [BulkApiV2] SELECT Id,Name,Username,Email,ProfileId FROM User WHERE Email LIKE '%.invalid' and IsActive=true and ProfileId IN ('') ✔ [BulkApiV2] Bulk Query completed with 0 results. [sfdx-hardis] No matching user records found with email ending with .invalid

nvuillam commented 3 days ago

Thanks for reporting, I succeeded to reproduce, i'm on it :)

nvuillam commented 3 days ago

@paferpotest fixed in 5.6.1

It was related to the updated way of handling default values by SF Cli architecture (vs sfdx cli arch), so the bug was here since sfdx-hardis v5 😨

Please can you confirm it's now ok with your use case ? :)

paferpo commented 3 days ago

That was quick, it's working well now, thanks!

nvuillam commented 3 days ago

@paferpo the fix was very simple :)