How to setup Visual Studio Code for Salesforce ? | Link VSCode with Non Scratch Org using SFDX CLI

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • Hello Trailblazers,
    In this video, we're going to learn how we can setup vscode for salesforce development. I am going to tell you how you can setup vscode and sfdx cli from scratch, which all extensions are required and we're also going to connect with a non-scratch org and interact with that org from our IDE by using sfdx cli. I am also going to share some tips and configurations that will be useful for you whenever you're using vscode.
    Download VSCode:- code.visualstudio.com/
    Download SFDX CLI:- developer.salesforce.com/tool...
    Detailed Blog Post:- www.sfdcstop.com/2019/06/how-...
    Interested in learning integrations from basics ? Check out out Integration Tutorial Playlist:- • Salesforce Integration...
    Subscribe to SFDC Stop:- czcams.com/users/sfdcstop?su...
    Interested about learning Salesforce Lightning ? We have a playlist for that too:- • Salesforce Lightning T...

Komentáře • 218

  • @fathimabeevi6254
    @fathimabeevi6254 Před 3 měsíci

    Lately, whenever I find myself in a pickle with a Salesforce CLI concept or development aspect, I happily turn to your blogs or CZcams videos! Your amazing content in Salesforce has been an absolute lifesaver. It's wonderfully clear and makes learning Salesforce a breeze, especially for newcomers like me. Thank you ever so much for your fantastic work!

    • @sfdcstop
      @sfdcstop  Před 3 měsíci

      Thank you! Fathima. I'm so thrilled that my content is helping you navigate the world of Salesforce and especially that it's making learning enjoyable for newcomers. That's exactly what I aim for! If you ever have any questions that my content doesn't cover, don't hesitate to reach out. Keep up the great work in your Salesforce journey!

  • @vaibhavsingh2418
    @vaibhavsingh2418 Před 4 lety

    short, crisp and very clear. Thank you

  • @bipindutta2967
    @bipindutta2967 Před 3 lety +5

    Thank you very much as for the first time I am able to understand and set up VS Code. KUDOS to You!!!!

  • @MrBaymis
    @MrBaymis Před 3 lety

    Great tutorial, thank you for the detailed step by step

  • @gaurichaudhari9414
    @gaurichaudhari9414 Před 3 lety

    Awesome Tutorial. Thank you so much.

  • @juliocvelarde
    @juliocvelarde Před 3 lety +1

    Straightforward and clear, Very helpful.... Thanks

  • @GAYATHRIVALLEPU
    @GAYATHRIVALLEPU Před 3 lety +1

    Thanks for the detailed explanation... i could setup VS Code to Salesforce only through your video. Thanks

  • @bavadharaniganesan1225

    Wonderful tutorial! Love it

    • @sfdcstop
      @sfdcstop  Před 2 lety +1

      So happy to know that 😊 Keep Learning! I also came across a couple of posts of your community sessions. Keep up the great work! 👍

  • @Babyslittlethings
    @Babyslittlethings Před 3 lety

    such a excellent video great very easy to follow :)

  • @ravikant2878
    @ravikant2878 Před 4 lety

    Thanks sir for the amazing precise and clear tutorial. 😁

    • @sfdcstop
      @sfdcstop  Před 4 lety

      Glad it was helpful ! 😊

  • @abhijeetwarulkar7896
    @abhijeetwarulkar7896 Před 3 lety

    Short and very clear . Thank You.

  • @komalyesweker1536
    @komalyesweker1536 Před 2 lety

    Thanks for sharing the steps it was super easy to set up :)

  • @sanampurirajasekhar1305
    @sanampurirajasekhar1305 Před 3 lety +1

    you killed it bro simple and awesome

    • @sfdcstop
      @sfdcstop  Před 3 lety +1

      So happy to know that 😁 Thank you bro!

  • @DeepakPrajapati-lj1rf
    @DeepakPrajapati-lj1rf Před 3 lety

    Thanks, very helpful video !

    • @sfdcstop
      @sfdcstop  Před 3 lety

      Thank you Deepak, Glad it was helpful!

  • @bharatvyas2667
    @bharatvyas2667 Před 3 lety

    Thank you for detailed video.

  • @QaAutomationAlchemist
    @QaAutomationAlchemist Před 2 lety

    Very nice ! Thanks

  • @ericblanco8338
    @ericblanco8338 Před 3 lety

    Nice job. Answered many beginner questions.

  • @RelaxingMusic-bo8yi
    @RelaxingMusic-bo8yi Před 2 lety

    Thank you very much for this helpful tutorial 😇😇😇

  • @SibluXplore
    @SibluXplore Před 3 lety

    Thank you for detailed explanation.

  • @priyankapenmetsa7134
    @priyankapenmetsa7134 Před 2 lety

    Good work, for the detailed tutorial.

  • @Priyankrajvanshi
    @Priyankrajvanshi Před 3 lety

    Rahul, it's really good and helpful. You have demonstrated every step very well. Keep it up. (y)

    • @sfdcstop
      @sfdcstop  Před 3 lety +1

      Thank you so much bhai 😊 I miss working together. Hope you're doing well!

    • @Priyankrajvanshi
      @Priyankrajvanshi Před 3 lety

      @@sfdcstop all good Rahul, yes I also miss those amazing days. Please keep this momentum and post videos and stay in touch.

    • @prasannavarma5182
      @prasannavarma5182 Před 2 lety

      @@sfdcstop iam unable to see .exe file

  • @sumanthsanagala4477
    @sumanthsanagala4477 Před 2 lety

    Thanks for sharing step by step process to set up a vscode in pc.

    • @sfdcstop
      @sfdcstop  Před 2 lety

      Glad it helped! Keep learning!!

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

    Thank you so much for the content 🙏

  • @amandhadwal3902
    @amandhadwal3902 Před 4 lety

    as always great work,rahul

  • @skyper854
    @skyper854 Před 2 lety

    Bhayya tum bagawan ho.. Kitne awesome video yar

  • @sophieyyyhh0057
    @sophieyyyhh0057 Před rokem +1

    Super teaching sir 👌👌
    More videos on apex lwc

  • @karanbh100
    @karanbh100 Před 3 lety

    Thank you for this

  • @harshajain9412
    @harshajain9412 Před 2 lety

    Thanks a lot... It helped me really... Keep it up...

    • @sfdcstop
      @sfdcstop  Před 2 lety

      Glad it helped. Keep Learning!!

  • @Trailhead_Champion
    @Trailhead_Champion Před 10 měsíci +1

    '"C:\Users\Sumit\AppData\Local\sfdx\client\bin\..\7.209.6-8ba3197\bin\sfdx.cmd"' is not recognized as an internal or external command,
    operable program or batch file. showing this error when i open cmd and type sfdx how to fix this

  • @uguraydin8579
    @uguraydin8579 Před 3 lety

    great ! Thank you

  • @anmolvarshney670
    @anmolvarshney670 Před 3 lety

    Nice explaination👍

  • @nitinsen9158
    @nitinsen9158 Před 2 měsíci

    hey i've installed vs code and added extension and path is already there but still getting this error ''sfdx : The term 'sfdx' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
    path was included, verify that the path is correct and try again.
    At line:1 char:1
    + sfdx
    + ~~~~
    + CategoryInfo : ObjectNotFound: (sfdx:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

  • @waleedrafique251
    @waleedrafique251 Před 2 lety

    Thanks Rahul for sharing

  • @janac7510
    @janac7510 Před 4 lety

    Nice,Thanks

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

    Not getting the command to authorise org after creating a new project.
    Not I already had one other org connected with VS code before I tried to create a new project.

  • @ehteshamulhaq1387
    @ehteshamulhaq1387 Před 2 lety

    showing the path was critical, also just want to add there is a need to re-install the sfdx from the exe file inorder for the SFDX to show up in the command prompt. thank you again.

    • @sfdcstop
      @sfdcstop  Před 2 lety

      Maybe a window reload can help as well. Sometimes the extensions are not loaded properly and it may take time.

  • @fareedshuja2938
    @fareedshuja2938 Před 4 lety +1

    When I right click inside the package.xml file and choose 'Retrieve source in manifest from org', it does not retrieve any data. I also tried to execute the command '
    sfdx force:source:retrieve --manifest' but it gives me an error (ERROR running force:source:retrieve: Flag --manifest expects a value). help please

    • @sfdcstop
      @sfdcstop  Před 4 lety

      Hi Fareed, I guess your package.xml path is not correct which vscode is considering. Can you try running the retrieve command yourself and specify the --manifest with the path to package.xml and see if that works ?

  • @navarun9695
    @navarun9695 Před 2 lety +8

    Hi thanks for the tutorial 🔥
    Could you please make a video exclusively of how to set up Java and CLI, and the path variables ? It would be of great help.

    • @sfdcstop
      @sfdcstop  Před 2 lety +8

      Sure Navarun, Although it's been a while I have setup VSCode but if I remember correctly I used Java8. Will post a video on this as well once we have a couple of votes!

    • @Agelit77
      @Agelit77 Před 8 měsíci

      @@sfdcstop I need video about JDK as well, please

  • @shubhamkurade1537
    @shubhamkurade1537 Před 5 měsíci

    Hi I am not getting option to create sfdx project still I have installed all the packages....😢

  • @JaimeBIDtravel
    @JaimeBIDtravel Před 3 lety +2

    Clear and useful! Question 🙋 please, how do you get the green comments at the beginning of each file? Is that an extension?

    • @sfdcstop
      @sfdcstop  Před 3 lety +1

      Yes Jaime, you're right. It's an extension. Have a look at all the cool extensions I am using here:- czcams.com/video/FAX66uqbEE0/video.html

  • @vidyashree4052
    @vidyashree4052 Před rokem

    Hi
    Very nice video, thank u
    Everything works fine but after i reopen vs code i can see my project but can't see the cloud icon and plugin symbol at bottom... Can u please suggest what am i missing

  • @vivekkamble1
    @vivekkamble1 Před 2 lety

    Thanks 👍👍👍

  • @Mastaafa
    @Mastaafa Před 2 lety

    Good Content :)

  • @Agelit77
    @Agelit77 Před 8 měsíci

    Is it necessary to download Java to VS code for working on Salesforce in VS code?

  • @rekharoy2111
    @rekharoy2111 Před 4 lety

    Awesome

    • @sfdcstop
      @sfdcstop  Před 4 lety

      Thank you Rekha, make sure to share it among your network too :-)

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

    What we have to do if we are not getting sfdx options in vs code

  • @shubhamverma-hw6qi
    @shubhamverma-hw6qi Před 3 lety +1

    Hi Rahul!
    Thank you for such an explanatory session.
    I'm facing an issue!
    When I'm trying to authorize a Dev hub.. after following the required steps..I can see a notification bar at bottom right saying "Salesforce CLI: Authorizing a Dev hub" but I'm not getting redirected to the browser to login with my org creds!
    That pop remains as it is! And nothing happens further.
    Please help!!

    • @sfdcstop
      @sfdcstop  Před 3 lety +1

      Hi Subham, Glad to know that you liked the tutorial. I got similar comments from different persons who're facing the same issue. I haven't encountered that myself but I think there is some issue with VSCode. Try updating both VSCode and sfdx. You can also try to authorize devhub from terminal sfdx auth:web:login --setdefaultdevhubusername --setalias my-hub-org to make sure the issue is in VSCode or sfdx and update that specific thing.

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

    to perform before jdk installation need?

  • @jayagupta4775
    @jayagupta4775 Před 3 lety

    thank u very much r u also providing classes for project

  • @kumarkumartalk
    @kumarkumartalk Před 4 lety

    SUPER!!!!!!!!!!!

    • @sfdcstop
      @sfdcstop  Před 4 lety +1

      Thank you Kumar :-) Make sure to share the video in your network as well...!!

  • @praveenchaitanyadasi7332
    @praveenchaitanyadasi7332 Před 8 měsíci

    Hi sir. It's great video. But for me, command palette commands are not working after installing CLI, extensions also. Please help me with this.

  • @theProhorKey
    @theProhorKey Před 3 lety

    Thanks from Belarus

  • @JojoDyeager
    @JojoDyeager Před rokem

    Thnx ANNA

  • @rishidharvaila6766
    @rishidharvaila6766 Před 4 lety +2

    Hi rahul, when i m trying to create a project in vscode, it's showing this error ( Command 'SFDX: Create Project' resulted in an error (command 'sfdx.force.project.create' not found) ). I have set the path as well but don't know why am i getting this error.

    • @sfdcstop
      @sfdcstop  Před 4 lety

      Hi Rishidhar, I guess your VSCode extensions are not loaded properly. Try the reload window command from the command pallete in VSCode, wait for some time and try again to create project

    • @rishidharvaila6766
      @rishidharvaila6766 Před 3 lety

      @@sfdcstop Thanks for the response rahul, tried using "Reload Window" command but it's still showing the same error and the output in terminal is "Connection to server is erroring. Shutting down server". I got the same output before using reload window command.

    • @sfdcstop
      @sfdcstop  Před 3 lety

      Can you try updating the java memory as shown in this article at the end:- developer.salesforce.com/tools/vscode/en/getting-started/java-setup/#advanced-setup

  • @santhoshg9842
    @santhoshg9842 Před 4 lety +1

    I getting Problem in vsCode Create Project and Salesforce CLI Integration Running continuously not Creating Project not populating in the VS

    • @sfdcstop
      @sfdcstop  Před 4 lety

      Hi Santhosh, there is some issue with your VSCode extensions I guess. Can you try running that command in the terminal and see if that works ? You can try updating the extension or just uninstall and install it again.

  • @stlyf1834
    @stlyf1834 Před 3 lety +1

    How to auto indent cmp, js and apex code in vs code?
    Is there any shortcut like we have shift + tab in dev console?

    • @sfdcstop
      @sfdcstop  Před 3 lety

      There is a command called "Reindent Lines" that you can use.

  • @abhishekkumar-lq3dw
    @abhishekkumar-lq3dw Před 3 lety +1

    I installed and authorized one of my dev org,but now i want to work with my another dev org,but i am not getting authorizing option again. Plz help to fix this issue.

    • @sfdcstop
      @sfdcstop  Před 3 lety +1

      Hi Abhishek, I think your extensions are not loaded properly. Try reloading the VSCode window or try removing the defaultusername from sfdx-config.json file under .sfdx folder

  • @pavithrat7072
    @pavithrat7072 Před 2 lety +1

    I don't have any org in my vs code but when I click authorize on org- sandbox it not take me login to slaesforce test page it shows Authorize on org ran successfully but I don't find any org in my vs code can you please help me with this

    • @sfdcstop
      @sfdcstop  Před rokem

      Hi Pavithra, can you try updating your sfdx cli and VSCode plugin?

  • @vernasaur
    @vernasaur Před 3 lety

    I'm not getting manifest folder in the directory structure once i create the new proj in VS

    • @sfdcstop
      @sfdcstop  Před 3 lety +1

      Make sure you're selecting "SFDX: Create Project with Manifest"

  • @lordofthelords4168
    @lordofthelords4168 Před 3 lety +1

    Hi Rahul,
    I have stuck in a problem ,when authorize an org it says its successfully authorized the org .
    But its not showing exit code 0. and keeps on running.
    I have installed all successfully, but still not showing that exit code .
    So what is the problem.

    • @sfdcstop
      @sfdcstop  Před 3 lety

      Hi, maybe it's an issue with your extension or VSCode. Try updating them once.

  • @MadvviTest
    @MadvviTest Před 17 dny

    Hi Rahul, after installations and setup, I see lots of warnings in PROBLEMS window like "Variable does not exist: Schema.SObjectType.Opportunity" , "Field does not exist: Data_Center__c on Opportunity" even though the field is existed ion OPP. what might be the reason?

    • @sfdcstop
      @sfdcstop  Před 13 dny

      Hi, looks like your sObject details are not present in your vscode project metadata, try using the refresh sobjects metadata command from the command palette

  • @venkatasairam333
    @venkatasairam333 Před 2 lety

    how to execute the code that was written in VS code for the ToastController.cls you have written if it had system.debug(' ' )in it

    • @sfdcstop
      @sfdcstop  Před 2 lety

      If you want to execute any apex code directly, you can select it and then choose "SFDX: Execute Anonymous Apex with Currently Selected Text" option from the command palette. Hope that helps!

  • @NagaVivekeverwin
    @NagaVivekeverwin Před 3 lety

    What did you do to get the font color same as sublime

    • @sfdcstop
      @sfdcstop  Před 3 lety

      It's monokai theme in VSCode. Use:- Ctrl + K + T and choose Monokai

  • @momentumCA
    @momentumCA Před 2 lety

    19.44 before go command palette, open folder otherwise create project manifest section not coming from search area.

  • @dharanisumadomakonda1852
    @dharanisumadomakonda1852 Před 3 lety +1

    I can't find "authorize an org" and "create lightening component" in command palette.. How to get them?

    • @sfdcstop
      @sfdcstop  Před 3 lety +2

      Hi, open the command palette and execute "Reload Window" command, wait for some time and it should appear then.

    • @dharanisumadomakonda1852
      @dharanisumadomakonda1852 Před 3 lety

      I reloaded it multiple times but didn't work.

    • @sfdcstop
      @sfdcstop  Před 3 lety +1

      You should wait for some time after reloading once... extensions take some time to activate

  • @jugalpatel2274
    @jugalpatel2274 Před 3 lety +1

    My browser login in not open after giving alias name , tried many option but nothing worked

    • @sfdcstop
      @sfdcstop  Před 3 lety

      Hi Jugal, can you try:- sfdx force:org:list and check whether your org is connected to salesforce cli or not ? You'll find the alias there as well.

  • @prema-1057
    @prema-1057 Před 4 lety +1

    HI Rahul, Could you please help me on this : whenever I am trying to execute any command from Terminal then it throws this error : sfdx force:org:open
    Program 'sfdx.cmd' failed to run: Access is deniedAt line:1 char:1
    + sfdx force:org:open
    + ~~~~~~~~~~~~~~~~~~~.
    At line:1 char:1
    + sfdx force:org:open
    + ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

    • @sfdcstop
      @sfdcstop  Před 4 lety

      Hi Prerna, I guess your VSCode is not setup properly with Salesforce Extension Pack can you try updating/re-installing it ? Also, can you simply open your cmd and try to execute any sfdx command (Ex:- sfdx force:org:list) there to see if it works ?

  • @Srinud-ux4ew
    @Srinud-ux4ew Před 2 lety +1

    I'm unable to do..this shows me in my system nodes supported only in windows 8.1..my system was windows 7 only

    • @sfdcstop
      @sfdcstop  Před 2 lety

      Hi, I don't think latest version of node is supported on win7, you may need to install an earlier version of salesforcedx cli for this, this link may help: www.gitmemory.com/issue/forcedotcom/cli/898/793129061

  • @anuj9191
    @anuj9191 Před 4 lety

    Thanks Rahul for precise overview. However i am facing an error if you can help to resolve -
    I installed the CLI and JDK but I am still getting this error - "The salesforcedx-vscode-apex.java.home setting defined in VS Code settings points to a missing folder. For information on how to setup the Salesforce Apex extension, see Set Your Java Version".
    Sine I installed Oracle Java 11 and followed these steps as mention there - Select File > Preferences > Settings (Windows or Linux) or Code > Preferences > Settings > Search for apex.
    I changed the salesforcedx-vscode-apex.java.home setting to the full pathname of Java Runtime as mentioned but still that error message is recurring.

    • @sfdcstop
      @sfdcstop  Před 4 lety

      Hi Anuj,
      I had the same issue and I think VSCode Salesforce Apex Extension maybe currently doesn't support Java 11. I downgraded to Java 8 and I am using JDK 1.8.0_45 and it's working fine for me. Give it a try.

    • @Agelit77
      @Agelit77 Před 8 měsíci

      I have the same issue. I downloded jdk17 but it didnt help

  • @chaitanyareddy5682
    @chaitanyareddy5682 Před 2 lety

    Hiiii
    I'm unable to create project..
    When entered new project name and selected a folder it's showing like
    EPERM : operation not permitted,mkdir 'C: Program Files\sfdx\....'

    • @sfdcstop
      @sfdcstop  Před 2 lety

      Hi, looks like you don't have right access to the project folder, can you check the folder permissions once where sfdx is installed or you can re-install it and make sure you're not running commands as your own user.

  • @rohitbarua469
    @rohitbarua469 Před rokem +1

    sir do i have to choose the sandbox option or production option after authorizing an org

    • @sfdcstop
      @sfdcstop  Před rokem

      Hi Rohit, it depends on the environment you want to connect to. It it's sandbox (test.salesforce.com) choose sandbox. Otherwise if it's dev or production (login.salesforce.com) choose production.

    • @rohitbarua469
      @rohitbarua469 Před rokem

      @@sfdcstop ok sir

  • @pramodreddygada1693
    @pramodreddygada1693 Před rokem +1

    Thanks for the tutorial..
    I have tried it but i am getting an error as
    "SFDX: Authorize an Org failed to run"
    Could you please help in this...

    • @sfdcstop
      @sfdcstop  Před rokem

      Hi Pramod, can you share some more info about this error? Any other details?

  • @asish681
    @asish681 Před 3 lety +1

    @Rahul , can u please help me . I am not able to use vs code. I am facing some issue after installing vs code. Please let me know how can we connect.

    • @sfdcstop
      @sfdcstop  Před 3 lety

      Hi Asish, you can join our telegram group: t.me/sfdcstopdiscuss

  • @aajethiyaa1588
    @aajethiyaa1588 Před 2 lety

    Hi, I am unable to install salesforce extension pack in my vs code it show me an error while fetching extensions. XHR failed. but I download extension from Google and with the help of Install of VSIX I install the extensions but now I am unable to create a sfdx project. help me in this to resolve my issue.

    • @sfdcstop
      @sfdcstop  Před 2 lety

      What's the exact issue that you're facing?

    • @aajethiyaa1588
      @aajethiyaa1588 Před 2 lety

      @@sfdcstop error while fetching extension XHR failed

  • @priyagupta2443
    @priyagupta2443 Před 3 lety +1

    Effective tutorial but I am facing an issue. I am unable to retrieve the custom objects from org. Can you please help me out?
    Note: I have followed every step.

    • @sfdcstop
      @sfdcstop  Před 3 lety

      Hi Priya, please make sure you've added CustomObject in your package.xml

  • @chetandafeonlyforyu
    @chetandafeonlyforyu Před 2 lety

    I m getting error that crud permission is not available when I run query.
    Please guide on this error.

    • @sfdcstop
      @sfdcstop  Před rokem

      Hi, please check you have the right permissions on the object you're trying to query.

  • @lekhanakari9112
    @lekhanakari9112 Před 2 lety +1

    Hello sir
    It was quite clear
    But while trying , I couldnt able to see the path in Edit Environment variable in system variables

    • @sfdcstop
      @sfdcstop  Před 2 lety

      Hi Lekhana, have you tried updating it directly? It may not have any value initially but you can still assign it

  • @ratnadurga1772
    @ratnadurga1772 Před 2 lety

    Cannot able to authorize an org,it's showing as running after 30 mins also still showing same,can you help to resolve this issue

    • @sfdcstop
      @sfdcstop  Před 2 lety

      Hi Ratna, can you try updating your salesforcedx? or re-installing the plugin in vscode? I have seen the same issue in some systems. If it doesn't work, you can create a github issue for the same here: github.com/forcedotcom/salesforcedx-vscode/issues

  • @avinash4560
    @avinash4560 Před 3 lety +1

    1. Project creation - worked fine
    2. non-scratch(Developer) org authorization - worked fine
    3. For Retrieve command - its throwing error "ERROR running force:source:retrieve: Cannot read property 'record' of undefined"...Could you please answer ??

    • @sfdcstop
      @sfdcstop  Před 3 lety

      Hi Avinash, I think there is some issue with your package.xml. Can you check that once ?

  • @lwing989
    @lwing989 Před 3 lety +1

    I have tried installing and reinstalling many times. I do not get sfdx exe. I see sfdx is under Salesforce CLI folder and only have sfdx.cmd and sfdx.log in both Salesforce CLI bin and Salesforce CLI client bin folders. my cmd is not working so I use powershell and coming back sfdx not recognized... kindly any help how to create dx project when cannot get sfdx.

    • @sfdcstop
      @sfdcstop  Před 3 lety

      Hi, If you can add Salesforce CLI bin folder in the environment variables, it will work fine with powershell. sfdx.cmd file is sufficient

    • @lwing989
      @lwing989 Před 3 lety

      @@sfdcstop the problem is that after creating project, the folder, there is nothing show up in the project folder. I tried exit and relaunch and restart my Window, same.

    • @sfdcstop
      @sfdcstop  Před 3 lety

      So, the project folder is empty ? are you using vscode and Salesforce Extensions to create the project ?

    • @lwing989
      @lwing989 Před 3 lety

      @@sfdcstop yep, installed CLI directly to laptop, also SF extension in vsc which has the cli also. even JDK 11 installed. I have also installed and uninstalled many times. after installed restart...

    • @sfdcstop
      @sfdcstop  Před 3 lety

      Try once with Java 8, it should work

  • @atulbansal2951
    @atulbansal2951 Před 4 lety

    Hi Rahul, I am getting this while creating project "Command 'SFDX: Create Project with Manifest' resulted in an error (command 'sfdx.force.project.with.manifest.create' not found)"......kindly help me

    • @atulbansal2951
      @atulbansal2951 Před 4 lety +1

      CLI, VScode extensions are all done fine.....still unable to run any SFDX command

    • @sfdcstop
      @sfdcstop  Před 4 lety

      Hi Atul, can you share a screenshot of the error, it'll be helpful to debug :- t.me/sfdcstopdiscuss

  • @desigamee.2014
    @desigamee.2014 Před 4 lety

    the salesforce.exe is missing int the installation folder what to do about it.

    • @sfdcstop
      @sfdcstop  Před 4 lety

      Salesforce.exe ? What do you mean by that ?

  • @cas818028
    @cas818028 Před 3 lety

    I still haven’t gotten autocomplete to work correctly, am I missing something?

    • @sfdcstop
      @sfdcstop  Před 3 lety

      Hi, Have you tried reloading window?

  • @fernandadanielaargueta5
    @fernandadanielaargueta5 Před 4 lety +1

    I can't find SFDX: Create Lightning Component

    • @sfdcstop
      @sfdcstop  Před 4 lety

      Hi Fernanda, can you please check that you've installed "Salesforce Extension Pack" extension in VSCode and if you've done so and it's still not coming, just try opening the command palette by Ctrl+Shift+P and choose reload window option, as sometimes extensions take some time to activate and be available.

  • @kiranlonkar1362
    @kiranlonkar1362 Před rokem +1

    Hey,
    thanks for the tutorial, could you please make video of how to install salesforce cli in ubantu?
    i am struggling with that.

    • @sfdcstop
      @sfdcstop  Před rokem +1

      Hi Kiran, will try to create one. Suggestion noted!

    • @kiranlonkar1362
      @kiranlonkar1362 Před rokem

      @@sfdcstop please make it ASAP.. It will help me lot. Thanks in advance

  • @jayakataboina1522
    @jayakataboina1522 Před 2 lety

    Hi rahul Im not able to connect vscode to org will you pls help me to connect pls let me know when can we connect

    • @sfdcstop
      @sfdcstop  Před 2 lety

      Hi Jaya, what issue are you facing? I would suggest posting your query here or on our telegram group: t.me/sfdcstopdiscuss

  • @mithileshdubey3707
    @mithileshdubey3707 Před 4 lety

    Hi Rahul,
    i'm not able to create a project as it is giving me an error, stating that "Path does not seem to exist anymore on disk". I tried looking on internet but didn't get it resolved. your help will be appreciated.
    Thanks,
    Mithilesh

    • @sfdcstop
      @sfdcstop  Před 4 lety

      Hi Mithilesh,
      I guess your installation path cannot be used by sfdx, maybe there is some spaces issue in that. Can you check if you've added sfdx fo "Path" environment variable in windows and it's working fine ?

    • @mithileshdubey3707
      @mithileshdubey3707 Před 4 lety

      hi Rahul,
      yes i installed CLI and checked it in cmd and env variable. it seems fine to me.

    • @sfdcstop
      @sfdcstop  Před 4 lety

      Hey Mithilesh, can you share a screenshot of error:- t.me/sfdcstopdiscuss

  • @naveenkumar-lz9di
    @naveenkumar-lz9di Před 2 lety

    Good Evening Sir. i installed but this message will display (PS C:\Users\NAVEEN\Documents\Salesforce vs code\VFProjec> sfdx update
    Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher.
    Setting the NODE_SKIP_PLATFORM_CHECK environment variable to 1 skips this
    check, but Node.js might not execute correctly. Any issues encountered on
    unsupported platforms will not be fixed.
    PS C:\Users\NAVEEN\Documents\Salesforce vs code\VFProjec>)

    • @sfdcstop
      @sfdcstop  Před 2 lety

      Hi Naveen, it looks like nodejs is not supported on your system, can you try installing a lower version of nodejs or try using some other system?

  • @sasasquare7259
    @sasasquare7259 Před 2 lety

    Input field- allow Numeric only? How we do Bro?

  • @sudharsanc180
    @sudharsanc180 Před 4 lety +1

    I cannot see Authorize to org in my command palette . What is the issue

    • @sfdcstop
      @sfdcstop  Před 4 lety +1

      Hey Sudharshan, sometimes extensions take some time to load. Make sure you have salesforce extension pack installed and enabled in VSCode and give it a couple of tries.

    • @SushenTiwari
      @SushenTiwari Před 3 lety +1

      @@sfdcstop same i am not getting authorize an org option in command pallete ,i have installed vs code 2 to 3 times and installed extension pack repeatedly but still not getting tht in command pallete

    • @dharanisumadomakonda1852
      @dharanisumadomakonda1852 Před 3 lety +1

      Same problem..what to do

    • @sfdcstop
      @sfdcstop  Před 3 lety +1

      Hi Sushen, open the command palette and execute "Reload Window" command, wait for some time and it should appear then.

    • @sfdcstop
      @sfdcstop  Před 3 lety +1

      Hi, open the command palette and execute "Reload Window" command, wait for some time and it should appear then.

  • @rahulpalav9125
    @rahulpalav9125 Před 2 lety

    Hey Rahul , please help me with this , I'm getting this error in vs code when I try to authorise , 15:32:03.699 sfdx force:config:set defaultusername=raj
    ended with error spawn C:\Windows\system32\cmd.exe ENOENT

    • @sfdcstop
      @sfdcstop  Před 2 lety +1

      Hi Rahul, this error usually comes when there is a request timeout due to issue in internet connection or sfdx. Can you make sure you're connected to internet and try once again?

    • @rahulpalav9125
      @rahulpalav9125 Před 2 lety

      [error - 8:34:42 am] connection to server is erroring. shutting down server.
      Is this a problem ? How to resolve this one ?

    • @sfdcstop
      @sfdcstop  Před 2 lety +1

      Looks like there is an issue with sfdx. Try updating it to the latest version using "sfdx update" command or create an issue here: github.com/forcedotcom/sfdx-core/issues

  • @sourabhgarg8400
    @sourabhgarg8400 Před 2 lety

    Please let us know...how we can make prettier compatible for apex classes

    • @sfdcstop
      @sfdcstop  Před 2 lety

      Hi Sourabh, there is a plugin that you can use: prettier-plugin-apex

    • @sfdcstop
      @sfdcstop  Před 2 lety

      I wrote a blog for the same here: www.sfdcstop.com/2022/05/how-to-setup-prettier-for-apex-in-vscode.html

  • @Om108-21
    @Om108-21 Před 3 lety

    Jem content

    • @amiyaguru
      @amiyaguru Před 3 lety

      Very nice detailed video indeed..But my problem is that I am not getting the cloud symbol on the right side of the visual code , after the Authorize Dev step..Pls help

  • @raghavendrasharma815
    @raghavendrasharma815 Před 4 lety

    Nice video, could you please tell me how can we deploy code from sandbox to production by VS CODE.

    • @sfdcstop
      @sfdcstop  Před 4 lety +1

      Hi Raghavendra, You can do that using sfdx cli. You can fetch the data using mdapi commands from sandbox and deploy that to production. Checkout this tool:- github.com/rahulmalhotra/SFDX-Deploy-Tool it might help you in this. You just need a package.xml for deployment from source org (sandbox) to destination org (production).

    • @raghavendrasharma815
      @raghavendrasharma815 Před 4 lety

      @@sfdcstop hi thanks for the quick response, currently I am using ant for deployment ,could you please make a video on this, by this video you help many many people like me. May god bless you.

    • @sfdcstop
      @sfdcstop  Před 4 lety +2

      Will surely make a video on it. For now, I am sharing a blog written on this deploy tool showcasing examples:- www.sfdcstop.com/2019/06/sfdx-deploy-tool.html
      I think it'll make it more clear for you to use this deploy tool for deployment to production :-)

    • @raghavendrasharma815
      @raghavendrasharma815 Před 4 lety

      @@sfdcstop thanks a lot, I will waiting for this video, God blessed you brother.

  • @RahulKumar-sf2xm
    @RahulKumar-sf2xm Před 4 lety

    Nice Tutorial, Please tell how to fetch standard and custom object, my vs code not show standard object and custom object and 1 more issue, if i change code in developer console (Salesforce) and vs code not changed automatically, Please help! , how to solve this issue.

    • @sfdcstop
      @sfdcstop  Před 4 lety +1

      Hi Rahul,
      If you've seen the whole video, I have mentioned the custom object in package.xml which is the only thing you need to do to fetch custom objects (you can specify * in the tag inside custom object). In order to fetch standarrd objects, you need to mention the standard object name in the same custom object section itself in package.xml and that standard object will be retrieved.
      Well, I don' think there is a need to use developer console if you've setup vscode but in case you do, you need to fetch the latest code in vscode using "Retrieve source in manifest from org" command that we used to fetch everything in our vscode initially. In case that's a single class, you can open that class in vscode, right click on the class code anywhere and you'll see an option like:- "fetch/retrieve this source from org" which will update that particular class. Hope that helps...!!

    • @RahulKumar-sf2xm
      @RahulKumar-sf2xm Před 4 lety +1

      @@sfdcstop Thanks, I'll try this method

    • @RahulKumar-sf2xm
      @RahulKumar-sf2xm Před 4 lety +1

      @@sfdcstop Hi Thanks for help but it's not working, Please tell me the issue.
      *
      StandardObject

      *
      CustomObject

    • @RahulKumar-sf2xm
      @RahulKumar-sf2xm Před 4 lety +1

      @@sfdcstop and how to run test class in vscode, error show java not compatible but i have already installed java latest

    • @sfdcstop
      @sfdcstop  Před 4 lety

      You actually need to add objects names under the custom object tag like:-
      TravelHistory__c
      CustomObject

  • @joelooker6838
    @joelooker6838 Před 3 lety +2

    @SFDCStop: Your tutorials are GREAT, very clear train of thought and direct. My only complaint is that sometimes your thick accent can be very hard to understand, so sometimes be careful not to run your words together so much... Also as someone who is clearly very knowledgeable and experienced, I feel you should know that you're mispronouncing a few important words:
    "alias" - pronounced ALE-EE-us. like pale, whale, kale.... then E. then US. the strong emphasis is on the 1st syllable.
    "apex" - sounds like you're saying "epics" or "epochs". again strong emphasis on the "A" as the first letter/syllable, very hard "A" that rhymes with stay, play, pay, say. AYYY-pex. not ahh-pex or ehh-pex. the "A" is the strong part of the word.
    Hope this helps people understand your videos a little better and you don't mind my saying, so you can help improve your tutorials. Thanks :-)

    • @sfdcstop
      @sfdcstop  Před 3 lety +1

      Agree, I have fixed the alias in future videos but certainly I can't do anything about this one. Will keep a note of apex as well. Thanks!

  • @sreeinfo517
    @sreeinfo517 Před 3 lety

    It's necessary to download java software

    • @sfdcstop
      @sfdcstop  Před 3 lety

      Hi Sreekanth, it's not necessary, it's suggested to setup java as some features are dependent on that.

    • @sreeinfo517
      @sreeinfo517 Před 3 lety +1

      @@sfdcstop sir do you provide any visual studio code for basics how write a code

    • @sreeinfo517
      @sreeinfo517 Před 3 lety

      Still I am waiting that video

    • @sfdcstop
      @sfdcstop  Před 3 lety

      Not as of now, I have plans to add an apex tutorial series from scratch. Will be posting videos for the same in June.

    • @sreeinfo517
      @sreeinfo517 Před 3 lety +1

      @@sfdcstop ya kkk sir we will wait your videos kkk TQ so much sir