Skip to main content
Angelko Krstanovic a posé une question dans #Trailhead Challenges
https://trailhead.salesforce.com/content/learn/projects/quickstart-vscode-salesforce/use-vscode-for-salesforce

 

When I complete the exercises, and try to Verify, the verification fails with:

 

Step not yet complete in My Trailhead Playground 3

 

We could not find Apex class named 'AccountController'.

 

I have made sure that my code has been deployed with the VSCode plugin:

 

=== Deployed Source

 

STATE  FULL NAME          TYPE       PROJECT PATH                                                 

 

──────────────────────────────

 

Add    AccountController  ApexClass  force-app/main/default/classes/AccountController.cls         

 

Add    AccountController  ApexClass  force-app/main/default/classes/AccountController.cls-meta.xml

 

When I create a trailhead playground, click Launch, and click verify, it appears that the generated source file is not being placed in the Trailhead Playground.

 

What am I missing?

 

Thanks!

 

=angelko
13 réponses
  1. 9 mai 2019, 04:54
    Hi Angelko,

     

    If you have multiple orgs connected or authorized in VSCode, then your code must be getting dpeloyed to one of the default org set.

     

    Try setting the org you want to use as default using below command:

     

    sfdx force:config:set defaultusername = 'Username that you want to use'

     

    And then confirm the list of orgs by using below command:

     

    sfdx force:org:list
0/9000