0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

The "force data soql query" command has been deprecated. Use "data query" instead.

Last updated at Posted at 2023-09-06

おそらく最近インストールするとCLIがsfdxからsfに変わったみたいですが、トレイルヘッドの記述は前のバージョンのままかもしれませんね。

As per the challenge I need to execute "SELECT Id, Name, Active__c FROM Account WHERE Active__c = 'Yes'" using "SFDX:Execute SOQL Query with Currently Selected Text" option but I get an error:

sfdx force:data:soql:query --query The "force data soql query" command has been deprecated. Use "data query" instead.

(node:34816) Warning: Deprecated environment variable: SFDX_JSON_TO_STDOUT. Please use SF_JSON_TO_STDOUT instead.

Try this

sf data query --query SELECT Id, Name, Active__c FROM Account WHERE Active__c = 'Yes'

https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_old_new_command_mapping.ht

古い回答

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?