Authorising an Org in VSCode - Lecture #5

Sdílet
Vložit
  • čas přidán 1. 03. 2022
  • Authorising an Org in VSCode - Lecture #5
    As a developer, it’s important to have the best tools to get your job done. So, in this course, we will discuss how to setup VSCode, configure the Salesforce CLI, connect our VSCode with Source Control like GIT and see how we can leverage this tool to excel at Salesforce development
    With this course, I intend to help the developer in you to be able to configure and use Visual Studio Code, one of the best IDEs for Salesforce development and SFDX CLI so that you can write code and perform far more efficiently than you would using the Developer Console.
    At the end of this course, you will be able to use Visual Studio Code with SFDX to deploy and retrieve metadata, write and push code to your org, pull new changes from your org, use effective plugins to work smarter and faster and a lot more. If you want to continue learning Salesforce (for free), Subscribe Salesforce Makes Sense here
    / @salesforcemakessense
    To ensure a smooth learning experience,
    I have curated playlists that will help you prepare for interviews, train on specific domains and boost your Salesforce journey.
    30 Scenario Based Questions:
    • 30 Salesforce Scenario...
    The Complete Administrator Course
    • Learn Salesforce Admin...
    Learn Salesforce in Bytes - Short videos on Salesforce features
    • Salesforce Bytes
    Learn Salesforce With Me - Topic based Explanatory Videos
    • Learn Salesforce with Me
    65 Salesforce Interview Questions:
    • 65 Interview Questions...
    100 Salesforce Interview Questions:
    • 100 Salesforce Intervi...
    If you would like to acknowledge my efforts and want me to continue training and mentoring, you can support me here.
    www.buymeacoffee.com/HimanshuM
    For any kind of questions, training & mentorship, queries & concerns,
    Feel free to drop a mail at
    salesforcemakessense@gmail.com
    That’s all from this video. See you in the next video. Till then, breathe long and keep learning :)

Komentáře • 21

  • @sujiths8149
    @sujiths8149 Před měsícem +1

    Hey there, I've choosen production just like you did in the video, and the browser is opening as well, but it says as my credentials is wrong check them or contact the salesforce admin, what should i do? any idea?

    • @salesforcemakessense
      @salesforcemakessense  Před měsícem

      See if you are autoselecting a saved username
      Instead try writing it all and save and see if it gets authorised.

  • @Vlogswithved
    @Vlogswithved Před 15 dny +1

    Tell me one thing when I create project in vscode I get error Refresh sbojects definition exit code 1 iski wajah se authorization bhi nhi ho rha

    • @salesforcemakessense
      @salesforcemakessense  Před 11 dny

      Hi,
      Please try reinstalling VSCode, Salesforce click and then all the necessary plugins. Ensure path of sfdx bin is added and then try authorising.

  • @user-ux5bk7ih2m
    @user-ux5bk7ih2m Před 7 měsíci +1

    what if, if I select "project Default"???? I am not exactly knowing from these 4 options what I have to select?????

    • @salesforcemakessense
      @salesforcemakessense  Před 7 měsíci

      If you are working on production or your developer edition choose login.salesforce
      If you are working on a sandbox use test.salesforce
      If you have a custom url or login url with you of your org use project default

  • @user-ql4pl1du9g
    @user-ql4pl1du9g Před rokem +2

    I am not getting org to authorize option in command pallette

    • @salesforcemakessense
      @salesforcemakessense  Před rokem

      Hey Swati, it takes some time fir VSCode to load SFDX. You should then start seeing it.
      However if you dont check if the plugins mentioned are installed correctly or not

  • @prateekshelekar9055
    @prateekshelekar9055 Před 6 měsíci +1

    I am having this issue says 'sfdx authorize an org failed to run' everytime i try to authorise an org. i tried to install and uninstall too

    • @salesforcemakessense
      @salesforcemakessense  Před 6 měsíci

      1. Ensure CLI is installed
      2. Ensure path of CLI is added to the environment variables
      Once done, restart VSCode and it ahould authorise.

  • @beevang5278
    @beevang5278 Před rokem

    What I am struggling with is when I close out of VS code and it starts over. How do get back to where I was? Where is my file? I Cant authorize the org? Its kinda confusing.

    • @salesforcemakessense
      @salesforcemakessense  Před rokem

      Hey, when you start it again, it does open the file and folders but it takes time to load. So give it about 3-5 minutes, wait and you will see the entire setup is loaded. All functions will also start showing up once the plugins/extensions are loaded.

  • @srirampsriram794
    @srirampsriram794 Před 2 lety

    If not connect authorize wt we do

    • @salesforcemakessense
      @salesforcemakessense  Před 2 lety

      If you are saying you are not able to authorise, you have multiple options. You can connect a sandbox/production/dev hub org/scratch org. So, you jut have to use the right username/password combination to get authorised. It should not be an issue I believe.

  • @Trailhead_Champion
    @Trailhead_Champion Před rokem +1

    not able to see authorize an org what is the solution for that

    • @salesforcemakessense
      @salesforcemakessense  Před rokem

      Takes time to load the sfdx plugins
      Give vscode some time and then you should start seeing everything

    • @Trailhead_Champion
      @Trailhead_Champion Před rokem +1

      Waited for last 20 minutes also add a command of sfdx update on cmd also still not working

    • @salesforcemakessense
      @salesforcemakessense  Před rokem

      @@Trailhead_Champion okay double check if your project is sfdx project or not in that case and plugins are properly installed or not

    • @Trailhead_Champion
      @Trailhead_Champion Před rokem +1

      @@salesforcemakessense An unsupported Java version was detected. Download and install [Java 8](java.com/en/download/), [Java 11](www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html), or [Java 17](www.oracle.com/java/technologies/downloads/#java17) to run the extensions. For more information, see [Set Your Java Version](developer.salesforce.com/tools/vscode/en/vscode-desktop/java-setup). this error is also showing can you please help me to resolve this

    • @salesforcemakessense
      @salesforcemakessense  Před rokem

      @@Trailhead_Champion this is not mandatory. But if you want you can install the latest bersion of jdk from java website and add the path in your environment variables, then this error will go away. However this should not stop sf project development as it is not needed