Lately, whenever I find myself in a pickle with a Salesforce CLI concept or development aspect, I happily turn to your blogs or TH-cam 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!
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!
'"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
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.
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.
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
@@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.
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
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
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.
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.
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
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
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 ?
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.
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.
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
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?
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
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
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 ?
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?
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
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\....'
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.
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.
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
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.
@@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
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.
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 ??
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
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!
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
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>)
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
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.
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!
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.
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.
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!!
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.
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
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 ?
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.
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.
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.
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...!!
@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 :-)
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).
@@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.
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 :-)
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
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
Lately, whenever I find myself in a pickle with a Salesforce CLI concept or development aspect, I happily turn to your blogs or TH-cam 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!
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!
Thank you very much as for the first time I am able to understand and set up VS Code. KUDOS to You!!!!
Glad it helped!
Bhayya tum bagawan ho.. Kitne awesome video yar
Thanks for the detailed explanation... i could setup VS Code to Salesforce only through your video. Thanks
Glad I could help!
Straightforward and clear, Very helpful.... Thanks
Glad it was helpful!
Super teaching sir 👌👌
More videos on apex lwc
'"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
you killed it bro simple and awesome
So happy to know that 😁 Thank you bro!
Thanks for sharing step by step process to set up a vscode in pc.
Glad it helped! Keep learning!!
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.
Maybe a window reload can help as well. Sometimes the extensions are not loaded properly and it may take time.
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.
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
@@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.
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
Nice job. Answered many beginner questions.
Glad it was helpful!
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
sir do i have to choose the sandbox option or production option after authorizing an org
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.
@@sfdcstop ok sir
I getting Problem in vsCode Create Project and Salesforce CLI Integration Running continuously not Creating Project not populating in the VS
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.
Rahul, it's really good and helpful. You have demonstrated every step very well. Keep it up. (y)
Thank you so much bhai 😊 I miss working together. Hope you're doing well!
@@sfdcstop all good Rahul, yes I also miss those amazing days. Please keep this momentum and post videos and stay in touch.
@@sfdcstop iam unable to see .exe file
I'm unable to do..this shows me in my system nodes supported only in windows 8.1..my system was windows 7 only
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
Hi I am not getting option to create sfdx project still I have installed all the packages....😢
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
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 ?
to perform before jdk installation need?
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.
Short and very clear . Thank You.
Glad you liked it
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.
Hi, maybe it's an issue with your extension or VSCode. Try updating them once.
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
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?
[error - 8:34:42 am] connection to server is erroring. shutting down server.
Is this a problem ? How to resolve this one ?
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
My browser login in not open after giving alias name , tried many option but nothing worked
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.
How to auto indent cmp, js and apex code in vs code?
Is there any shortcut like we have shift + tab in dev console?
There is a command called "Reindent Lines" that you can use.
Good work, for the detailed tutorial.
Thank you! Cheers!
Thank you very much for this helpful tutorial 😇😇😇
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
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 ?
I can't find "authorize an org" and "create lightening component" in command palette.. How to get them?
Hi, open the command palette and execute "Reload Window" command, wait for some time and it should appear then.
I reloaded it multiple times but didn't work.
You should wait for some time after reloading once... extensions take some time to activate
short, crisp and very clear. Thank you
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?
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
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\....'
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.
Thanks a lot... It helped me really... Keep it up...
Glad it helped. Keep Learning!!
@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.
Hi Asish, you can join our telegram group: t.me/sfdcstopdiscuss
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...
Hi Pramod, can you share some more info about this error? Any other details?
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.
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
Thank you so much for the content 🙏
Is it necessary to download Java to VS code for working on Salesforce in VS code?
as always great work,rahul
Thanks Aman :-)
What we have to do if we are not getting sfdx options in vs code
19.44 before go command palette, open folder otherwise create project manifest section not coming from search area.
I cannot see Authorize to org in my command palette . What is the issue
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.
@@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
Same problem..what to do
Hi Sushen, open the command palette and execute "Reload Window" command, wait for some time and it should appear then.
Hi, open the command palette and execute "Reload Window" command, wait for some time and it should appear then.
Hello sir
It was quite clear
But while trying , I couldnt able to see the path in Edit Environment variable in system variables
Hi Lekhana, have you tried updating it directly? It may not have any value initially but you can still assign it
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.
What's the exact issue that you're facing?
@@sfdcstop error while fetching extension XHR failed
Thanks from Belarus
I m getting error that crud permission is not available when I run query.
Please guide on this error.
Hi, please check you have the right permissions on the object you're trying to query.
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 ??
Hi Avinash, I think there is some issue with your package.xml. Can you check that once ?
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.
Clear and useful! Question 🙋 please, how do you get the green comments at the beginning of each file? Is that an extension?
Yes Jaime, you're right. It's an extension. Have a look at all the cool extensions I am using here:- th-cam.com/video/FAX66uqbEE0/w-d-xo.html
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
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
Thanks for sharing the steps it was super easy to set up :)
You're most welcome!
Awesome Tutorial. Thank you so much.
I'm not getting manifest folder in the directory structure once i create the new proj in VS
Make sure you're selecting "SFDX: Create Project with Manifest"
Thank you for detailed explanation.
Glad it was helpful!
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
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!
Hey,
thanks for the tutorial, could you please make video of how to install salesforce cli in ubantu?
i am struggling with that.
Hi Kiran, will try to create one. Suggestion noted!
@@sfdcstop please make it ASAP.. It will help me lot. Thanks in advance
Thanks sir for the amazing precise and clear tutorial. 😁
Glad it was helpful ! 😊
Please let us know...how we can make prettier compatible for apex classes
Hi Sourabh, there is a plugin that you can use: prettier-plugin-apex
I wrote a blog for the same here: www.sfdcstop.com/2022/05/how-to-setup-prettier-for-apex-in-vscode.html
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
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>)
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?
Thanks, very helpful video !
Thank you Deepak, Glad it was helpful!
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
CLI, VScode extensions are all done fine.....still unable to run any SFDX command
Hi Atul, can you share a screenshot of the error, it'll be helpful to debug :- t.me/sfdcstopdiscuss
Wonderful tutorial! Love it
So happy to know that 😊 Keep Learning! I also came across a couple of posts of your community sessions. Keep up the great work! 👍
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.
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!
@@sfdcstop I need video about JDK as well, please
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.
Hi Priya, please make sure you've added CustomObject in your package.xml
Input field- allow Numeric only? How we do Bro?
type="number"
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
Hi Jaya, what issue are you facing? I would suggest posting your query here or on our telegram group: t.me/sfdcstopdiscuss
Nice explaination👍
Thank You Anmol!
I can't find SFDX: Create Lightning Component
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.
Thank you for detailed video.
Glad it was helpful!
Great tutorial, thank you for the detailed step by step
Thanks Rahul for sharing
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!!
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.
I still haven’t gotten autocomplete to work correctly, am I missing something?
Hi, Have you tried reloading window?
such a excellent video great very easy to follow :)
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
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 ?
hi Rahul,
yes i installed CLI and checked it in cmd and env variable. it seems fine to me.
Hey Mithilesh, can you share a screenshot of error:- t.me/sfdcstopdiscuss
Very nice ! Thanks
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.
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.
I have the same issue. I downloded jdk17 but it didnt help
What did you do to get the font color same as sublime
It's monokai theme in VSCode. Use:- Ctrl + K + T and choose Monokai
the salesforce.exe is missing int the installation folder what to do about it.
Salesforce.exe ? What do you mean by that ?
thank u very much r u also providing classes for project
It's necessary to download java software
Hi Sreekanth, it's not necessary, it's suggested to setup java as some features are dependent on that.
@@sfdcstop sir do you provide any visual studio code for basics how write a code
Still I am waiting that video
Not as of now, I have plans to add an apex tutorial series from scratch. Will be posting videos for the same in June.
@@sfdcstop ya kkk sir we will wait your videos kkk TQ so much sir
Thank you for this
Thanks 👍👍👍
SUPER!!!!!!!!!!!
Thank you Kumar :-) Make sure to share the video in your network as well...!!
great ! Thank you
You are welcome!
Good Content :)
Nice,Thanks
Thank you Jana :-)
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.
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...!!
@@sfdcstop Thanks, I'll try this method
@@sfdcstop Hi Thanks for help but it's not working, Please tell me the issue.
*
StandardObject
*
CustomObject
@@sfdcstop and how to run test class in vscode, error show java not compatible but i have already installed java latest
You actually need to add objects names under the custom object tag like:-
TravelHistory__c
CustomObject
@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 :-)
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!
Awesome
Thank you Rekha, make sure to share it among your network too :-)
Nice video, could you please tell me how can we deploy code from sandbox to production by VS CODE.
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).
@@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.
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 :-)
@@sfdcstop thanks a lot, I will waiting for this video, God blessed you brother.
Thnx ANNA
Jem content
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
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
Hi Pavithra, can you try updating your sfdx cli and VSCode plugin?