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

  Рет қаралды 153,949

SFDC Stop

SFDC Stop

Күн бұрын

Пікірлер
@fathimabeevi6254
@fathimabeevi6254 8 ай бұрын
Lately, whenever I find myself in a pickle with a Salesforce CLI concept or development aspect, I happily turn to your blogs or KZbin 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 8 ай бұрын
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!
@bipindutta2967
@bipindutta2967 4 жыл бұрын
Thank you very much as for the first time I am able to understand and set up VS Code. KUDOS to You!!!!
@sfdcstop
@sfdcstop 4 жыл бұрын
Glad it helped!
@GAYATHRIVALLEPU
@GAYATHRIVALLEPU 4 жыл бұрын
Thanks for the detailed explanation... i could setup VS Code to Salesforce only through your video. Thanks
@sfdcstop
@sfdcstop 4 жыл бұрын
Glad I could help!
@juliocvelarde
@juliocvelarde 3 жыл бұрын
Straightforward and clear, Very helpful.... Thanks
@sfdcstop
@sfdcstop 3 жыл бұрын
Glad it was helpful!
@Trailhead_Champion
@Trailhead_Champion Жыл бұрын
'"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
@skyper854
@skyper854 2 жыл бұрын
Bhayya tum bagawan ho.. Kitne awesome video yar
@sophieyyyhh0057
@sophieyyyhh0057 2 жыл бұрын
Super teaching sir 👌👌 More videos on apex lwc
@shubhamkurade1537
@shubhamkurade1537 11 ай бұрын
Hi I am not getting option to create sfdx project still I have installed all the packages....😢
@nitinsen9158
@nitinsen9158 7 ай бұрын
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
@KRREnterprises
@KRREnterprises 6 ай бұрын
to perform before jdk installation need?
@arjavmehta4655
@arjavmehta4655 Жыл бұрын
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.
@rishidharvaila6766
@rishidharvaila6766 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
@@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 4 жыл бұрын
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
@RelaxingMusic-bo8yi
@RelaxingMusic-bo8yi 2 жыл бұрын
Thank you very much for this helpful tutorial 😇😇😇
@fareedshuja2938
@fareedshuja2938 4 жыл бұрын
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 4 жыл бұрын
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 ?
@keerthanak7841
@keerthanak7841 Жыл бұрын
What we have to do if we are not getting sfdx options in vs code
@sanampurirajasekhar1305
@sanampurirajasekhar1305 3 жыл бұрын
you killed it bro simple and awesome
@sfdcstop
@sfdcstop 3 жыл бұрын
So happy to know that 😁 Thank you bro!
@sumanthsanagala4477
@sumanthsanagala4477 3 жыл бұрын
Thanks for sharing step by step process to set up a vscode in pc.
@sfdcstop
@sfdcstop 3 жыл бұрын
Glad it helped! Keep learning!!
@momentumCA
@momentumCA 2 жыл бұрын
19.44 before go command palette, open folder otherwise create project manifest section not coming from search area.
@MadvviTest
@MadvviTest 6 ай бұрын
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 5 ай бұрын
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
@santhoshg9842
@santhoshg9842 4 жыл бұрын
I getting Problem in vsCode Create Project and Salesforce CLI Integration Running continuously not Creating Project not populating in the VS
@sfdcstop
@sfdcstop 4 жыл бұрын
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.
@rohitbarua469
@rohitbarua469 2 жыл бұрын
sir do i have to choose the sandbox option or production option after authorizing an org
@sfdcstop
@sfdcstop 2 жыл бұрын
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 2 жыл бұрын
@@sfdcstop ok sir
@vaibhavsingh2418
@vaibhavsingh2418 4 жыл бұрын
short, crisp and very clear. Thank you
@stlyf1834
@stlyf1834 3 жыл бұрын
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 3 жыл бұрын
There is a command called "Reindent Lines" that you can use.
@Srinud-ux4ew
@Srinud-ux4ew 3 жыл бұрын
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 3 жыл бұрын
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
@praveenchaitanyadasi7332
@praveenchaitanyadasi7332 Жыл бұрын
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.
@ericblanco8338
@ericblanco8338 3 жыл бұрын
Nice job. Answered many beginner questions.
@sfdcstop
@sfdcstop 3 жыл бұрын
Glad it was helpful!
@Agelit77
@Agelit77 Жыл бұрын
Is it necessary to download Java to VS code for working on Salesforce in VS code?
@dharanisumadomakonda1852
@dharanisumadomakonda1852 4 жыл бұрын
I can't find "authorize an org" and "create lightening component" in command palette.. How to get them?
@sfdcstop
@sfdcstop 4 жыл бұрын
Hi, open the command palette and execute "Reload Window" command, wait for some time and it should appear then.
@dharanisumadomakonda1852
@dharanisumadomakonda1852 4 жыл бұрын
I reloaded it multiple times but didn't work.
@sfdcstop
@sfdcstop 4 жыл бұрын
You should wait for some time after reloading once... extensions take some time to activate
@surilsenapati1731
@surilsenapati1731 Жыл бұрын
Thank you so much for the content 🙏
@jugalpatel2274
@jugalpatel2274 4 жыл бұрын
My browser login in not open after giving alias name , tried many option but nothing worked
@sfdcstop
@sfdcstop 4 жыл бұрын
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.
@abhijeetwarulkar7896
@abhijeetwarulkar7896 3 жыл бұрын
Short and very clear . Thank You.
@sfdcstop
@sfdcstop 3 жыл бұрын
Glad you liked it
@priyankapenmetsa7134
@priyankapenmetsa7134 3 жыл бұрын
Good work, for the detailed tutorial.
@sfdcstop
@sfdcstop 3 жыл бұрын
Thank you! Cheers!
@lordofthelords4168
@lordofthelords4168 4 жыл бұрын
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 4 жыл бұрын
Hi, maybe it's an issue with your extension or VSCode. Try updating them once.
@Priyankrajvanshi
@Priyankrajvanshi 3 жыл бұрын
Rahul, it's really good and helpful. You have demonstrated every step very well. Keep it up. (y)
@sfdcstop
@sfdcstop 3 жыл бұрын
Thank you so much bhai 😊 I miss working together. Hope you're doing well!
@Priyankrajvanshi
@Priyankrajvanshi 3 жыл бұрын
@@sfdcstop all good Rahul, yes I also miss those amazing days. Please keep this momentum and post videos and stay in touch.
@prasannavarma5182
@prasannavarma5182 3 жыл бұрын
@@sfdcstop iam unable to see .exe file
@rahulpalav9125
@rahulpalav9125 3 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
[error - 8:34:42 am] connection to server is erroring. shutting down server. Is this a problem ? How to resolve this one ?
@sfdcstop
@sfdcstop 3 жыл бұрын
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
@chaitanyareddy5682
@chaitanyareddy5682 3 жыл бұрын
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 3 жыл бұрын
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.
@pramodreddygada1693
@pramodreddygada1693 2 жыл бұрын
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 2 жыл бұрын
Hi Pramod, can you share some more info about this error? Any other details?
@asish681
@asish681 3 жыл бұрын
@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 3 жыл бұрын
Hi Asish, you can join our telegram group: t.me/sfdcstopdiscuss
@prema-1057
@prema-1057 4 жыл бұрын
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 4 жыл бұрын
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 ?
@ravikant2878
@ravikant2878 4 жыл бұрын
Thanks sir for the amazing precise and clear tutorial. 😁
@sfdcstop
@sfdcstop 4 жыл бұрын
Glad it was helpful ! 😊
@vernasaur
@vernasaur 4 жыл бұрын
I'm not getting manifest folder in the directory structure once i create the new proj in VS
@sfdcstop
@sfdcstop 4 жыл бұрын
Make sure you're selecting "SFDX: Create Project with Manifest"
@abhishekkumar-lq3dw
@abhishekkumar-lq3dw 4 жыл бұрын
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 4 жыл бұрын
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
@aajethiyaa1588
@aajethiyaa1588 2 жыл бұрын
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 2 жыл бұрын
What's the exact issue that you're facing?
@aajethiyaa1588
@aajethiyaa1588 2 жыл бұрын
@@sfdcstop error while fetching extension XHR failed
@sudharsanc180
@sudharsanc180 4 жыл бұрын
I cannot see Authorize to org in my command palette . What is the issue
@sfdcstop
@sfdcstop 4 жыл бұрын
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 4 жыл бұрын
@@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 4 жыл бұрын
Same problem..what to do
@sfdcstop
@sfdcstop 4 жыл бұрын
Hi Sushen, open the command palette and execute "Reload Window" command, wait for some time and it should appear then.
@sfdcstop
@sfdcstop 4 жыл бұрын
Hi, open the command palette and execute "Reload Window" command, wait for some time and it should appear then.
@ehteshamulhaq1387
@ehteshamulhaq1387 2 жыл бұрын
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 2 жыл бұрын
Maybe a window reload can help as well. Sometimes the extensions are not loaded properly and it may take time.
@gaurichaudhari9414
@gaurichaudhari9414 3 жыл бұрын
Awesome Tutorial. Thank you so much.
@venkatasairam333
@venkatasairam333 2 жыл бұрын
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 2 жыл бұрын
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!
@MrBaymis
@MrBaymis 3 жыл бұрын
Great tutorial, thank you for the detailed step by step
@chetandafeonlyforyu
@chetandafeonlyforyu 2 жыл бұрын
I m getting error that crud permission is not available when I run query. Please guide on this error.
@sfdcstop
@sfdcstop 2 жыл бұрын
Hi, please check you have the right permissions on the object you're trying to query.
@komalyesweker1536
@komalyesweker1536 3 жыл бұрын
Thanks for sharing the steps it was super easy to set up :)
@sfdcstop
@sfdcstop 3 жыл бұрын
You're most welcome!
@vidyashree4052
@vidyashree4052 Жыл бұрын
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
@QaAutomationAlchemist
@QaAutomationAlchemist 2 жыл бұрын
Very nice ! Thanks
@shubhamverma-hw6qi
@shubhamverma-hw6qi 4 жыл бұрын
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 4 жыл бұрын
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.
@harshajain9412
@harshajain9412 3 жыл бұрын
Thanks a lot... It helped me really... Keep it up...
@sfdcstop
@sfdcstop 3 жыл бұрын
Glad it helped. Keep Learning!!
@sourabhgarg8400
@sourabhgarg8400 2 жыл бұрын
Please let us know...how we can make prettier compatible for apex classes
@sfdcstop
@sfdcstop 2 жыл бұрын
Hi Sourabh, there is a plugin that you can use: prettier-plugin-apex
@sfdcstop
@sfdcstop 2 жыл бұрын
I wrote a blog for the same here: www.sfdcstop.com/2022/05/how-to-setup-prettier-for-apex-in-vscode.html
@SibluXplore
@SibluXplore 3 жыл бұрын
Thank you for detailed explanation.
@sfdcstop
@sfdcstop 3 жыл бұрын
Glad it was helpful!
@Babyslittlethings
@Babyslittlethings 3 жыл бұрын
such a excellent video great very easy to follow :)
@ratnadurga1772
@ratnadurga1772 3 жыл бұрын
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 3 жыл бұрын
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
@anmolvarshney670
@anmolvarshney670 4 жыл бұрын
Nice explaination👍
@sfdcstop
@sfdcstop 4 жыл бұрын
Thank You Anmol!
@lekhanakari9112
@lekhanakari9112 2 жыл бұрын
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 2 жыл бұрын
Hi Lekhana, have you tried updating it directly? It may not have any value initially but you can still assign it
@amandhadwal3902
@amandhadwal3902 4 жыл бұрын
as always great work,rahul
@sfdcstop
@sfdcstop 4 жыл бұрын
Thanks Aman :-)
@bavadharaniganesan1225
@bavadharaniganesan1225 3 жыл бұрын
Wonderful tutorial! Love it
@sfdcstop
@sfdcstop 3 жыл бұрын
So happy to know that 😊 Keep Learning! I also came across a couple of posts of your community sessions. Keep up the great work! 👍
@theProhorKey
@theProhorKey 3 жыл бұрын
Thanks from Belarus
@waleedrafique251
@waleedrafique251 2 жыл бұрын
Thanks Rahul for sharing
@sasasquare7259
@sasasquare7259 3 жыл бұрын
Input field- allow Numeric only? How we do Bro?
@sfdcstop
@sfdcstop 3 жыл бұрын
type="number"
@jayakataboina1522
@jayakataboina1522 3 жыл бұрын
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 3 жыл бұрын
Hi Jaya, what issue are you facing? I would suggest posting your query here or on our telegram group: t.me/sfdcstopdiscuss
@fernandadanielaargueta5
@fernandadanielaargueta5 4 жыл бұрын
I can't find SFDX: Create Lightning Component
@sfdcstop
@sfdcstop 4 жыл бұрын
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.
@atulbansal2951
@atulbansal2951 4 жыл бұрын
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 4 жыл бұрын
CLI, VScode extensions are all done fine.....still unable to run any SFDX command
@sfdcstop
@sfdcstop 4 жыл бұрын
Hi Atul, can you share a screenshot of the error, it'll be helpful to debug :- t.me/sfdcstopdiscuss
@bharatvyas2667
@bharatvyas2667 4 жыл бұрын
Thank you for detailed video.
@sfdcstop
@sfdcstop 4 жыл бұрын
Glad it was helpful!
@NagaVivekeverwin
@NagaVivekeverwin 4 жыл бұрын
What did you do to get the font color same as sublime
@sfdcstop
@sfdcstop 4 жыл бұрын
It's monokai theme in VSCode. Use:- Ctrl + K + T and choose Monokai
@DeepakPrajapati-lj1rf
@DeepakPrajapati-lj1rf 3 жыл бұрын
Thanks, very helpful video !
@sfdcstop
@sfdcstop 3 жыл бұрын
Thank you Deepak, Glad it was helpful!
@naveenkumar-lz9di
@naveenkumar-lz9di 3 жыл бұрын
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 3 жыл бұрын
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?
@JaimeBIDtravel
@JaimeBIDtravel 4 жыл бұрын
Clear and useful! Question 🙋 please, how do you get the green comments at the beginning of each file? Is that an extension?
@sfdcstop
@sfdcstop 4 жыл бұрын
Yes Jaime, you're right. It's an extension. Have a look at all the cool extensions I am using here:- kzbin.info/www/bejne/fHK7Z2mrpsd4e5I
@priyagupta2443
@priyagupta2443 4 жыл бұрын
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 4 жыл бұрын
Hi Priya, please make sure you've added CustomObject in your package.xml
@anuj9191
@anuj9191 4 жыл бұрын
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 4 жыл бұрын
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 Жыл бұрын
I have the same issue. I downloded jdk17 but it didnt help
@cas818028
@cas818028 4 жыл бұрын
I still haven’t gotten autocomplete to work correctly, am I missing something?
@sfdcstop
@sfdcstop 4 жыл бұрын
Hi, Have you tried reloading window?
@mithileshdubey3707
@mithileshdubey3707 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
hi Rahul, yes i installed CLI and checked it in cmd and env variable. it seems fine to me.
@sfdcstop
@sfdcstop 4 жыл бұрын
Hey Mithilesh, can you share a screenshot of error:- t.me/sfdcstopdiscuss
@desigamee.2014
@desigamee.2014 4 жыл бұрын
the salesforce.exe is missing int the installation folder what to do about it.
@sfdcstop
@sfdcstop 4 жыл бұрын
Salesforce.exe ? What do you mean by that ?
@avinash4560
@avinash4560 4 жыл бұрын
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 4 жыл бұрын
Hi Avinash, I think there is some issue with your package.xml. Can you check that once ?
@vivekkamble1
@vivekkamble1 3 жыл бұрын
Thanks 👍👍👍
@navarun9695
@navarun9695 3 жыл бұрын
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 3 жыл бұрын
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 Жыл бұрын
@@sfdcstop I need video about JDK as well, please
@kiranlonkar1362
@kiranlonkar1362 2 жыл бұрын
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 2 жыл бұрын
Hi Kiran, will try to create one. Suggestion noted!
@kiranlonkar1362
@kiranlonkar1362 2 жыл бұрын
@@sfdcstop please make it ASAP.. It will help me lot. Thanks in advance
@jayagupta4775
@jayagupta4775 3 жыл бұрын
thank u very much r u also providing classes for project
@Mastaafa
@Mastaafa 3 жыл бұрын
Good Content :)
@karanbh100
@karanbh100 3 жыл бұрын
Thank you for this
@kumarkumartalk
@kumarkumartalk 4 жыл бұрын
SUPER!!!!!!!!!!!
@sfdcstop
@sfdcstop 4 жыл бұрын
Thank you Kumar :-) Make sure to share the video in your network as well...!!
@janac7510
@janac7510 4 жыл бұрын
Nice,Thanks
@sfdcstop
@sfdcstop 4 жыл бұрын
Thank you Jana :-)
@uguraydin8579
@uguraydin8579 4 жыл бұрын
great ! Thank you
@sfdcstop
@sfdcstop 4 жыл бұрын
You are welcome!
@sreeinfo517
@sreeinfo517 3 жыл бұрын
It's necessary to download java software
@sfdcstop
@sfdcstop 3 жыл бұрын
Hi Sreekanth, it's not necessary, it's suggested to setup java as some features are dependent on that.
@sreeinfo517
@sreeinfo517 3 жыл бұрын
@@sfdcstop sir do you provide any visual studio code for basics how write a code
@sreeinfo517
@sreeinfo517 3 жыл бұрын
Still I am waiting that video
@sfdcstop
@sfdcstop 3 жыл бұрын
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 3 жыл бұрын
@@sfdcstop ya kkk sir we will wait your videos kkk TQ so much sir
@rekharoy2111
@rekharoy2111 4 жыл бұрын
Awesome
@sfdcstop
@sfdcstop 4 жыл бұрын
Thank you Rekha, make sure to share it among your network too :-)
@RahulKumar-sf2xm
@RahulKumar-sf2xm 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
@@sfdcstop Thanks, I'll try this method
@RahulKumar-sf2xm
@RahulKumar-sf2xm 4 жыл бұрын
@@sfdcstop Hi Thanks for help but it's not working, Please tell me the issue. * StandardObject * CustomObject
@RahulKumar-sf2xm
@RahulKumar-sf2xm 4 жыл бұрын
@@sfdcstop and how to run test class in vscode, error show java not compatible but i have already installed java latest
@sfdcstop
@sfdcstop 4 жыл бұрын
You actually need to add objects names under the custom object tag like:- TravelHistory__c CustomObject
@JojoDyeager
@JojoDyeager Жыл бұрын
Thnx ANNA
@raghavendrasharma815
@raghavendrasharma815 4 жыл бұрын
Nice video, could you please tell me how can we deploy code from sandbox to production by VS CODE.
@sfdcstop
@sfdcstop 4 жыл бұрын
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 4 жыл бұрын
@@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 4 жыл бұрын
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 4 жыл бұрын
@@sfdcstop thanks a lot, I will waiting for this video, God blessed you brother.
@Om108-21
@Om108-21 4 жыл бұрын
Jem content
@amiyaguru
@amiyaguru 3 жыл бұрын
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
@joelooker6838
@joelooker6838 3 жыл бұрын
@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 3 жыл бұрын
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!
@pavithrat7072
@pavithrat7072 2 жыл бұрын
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 2 жыл бұрын
Hi Pavithra, can you try updating your sfdx cli and VSCode plugin?
Amazing VSCode Hacks to Improve your Productivity
30:39
SFDC Stop
Рет қаралды 8 М.
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
The Best VSCode Extensions 2024
9:29
Coding With Adam
Рет қаралды 402 М.
Salesforce Developer Tutorial - How and Why to use Scratch Orgs for Development
1:00:52
I tried 10 code editors
10:28
Fireship
Рет қаралды 3,2 МЛН
Salesforce CLI with Visual Studio Code in Windows 11
16:53
Mitch Routt
Рет қаралды 1,8 М.
Min/Maxxing VS Code by Stripping the UI and Adding Vim
16:40
Visual Studio Code
Рет қаралды 59 М.