Skip to main content

Quick Tips: Setup Salesforce developer machine - without ADMIN Access

I presume, a lot of developers may be struggling to use right developer tools for salesforce development. It can be a further problem, if one doesn't have admin access on workstation, as lot of these tools just provide guidelines to install these tools. So this article covers setting up developer machine, without any installation process. In essence, you can setup a fully working Salesforce development environment on your workstation without any admin access.



Note: This is logically part 2 of setting up dev machine without admin access.

If you haven't gone through my earlier article of setting up SFDX on your workstation, without installation, I would recommend starting with this article Quick Tips: Setup SFDX Manually without Admin access

What is Visual Studio Code?

Visual studio code is an open source Interactive Development Environment (IDE) for programmers/ developers. It provides various capabilities and features for faster application development and is primarily a keyboard first application (promotes commands over clicks). In short it is also called as VS Code



Note: These steps apply to windows workstations only

Setup Git on your workstation without admin access

  1. If you have GIT already setup on your workstation, skip this section
  2. Go to git download website (https://git-scm.com/download/win) and download the right version listed under Git for Windows Portable
  3. Unzip folder at desired location. For e.g. /Tools/PortableGit

Setup Visual Studio Code on your workstation with Git

  1. Go to Visual studio's website and download zip installer version
  2. Unzip downloaded zip file into a desired folder for e.g. \Tools\VSCode
  3. Run Code.exe within extracted folder
  4. Open command (Cntrl + Shift + P) and select Preferences: Open Settings (JSON)
  5. Set config entry for git path for e.g. the resulting path should look like as follows

    {
    "javascript.implicitProjectConfig.experimentalDecorators": true,
    "editor.minimap.enabled": false,
    "git.path" : "c:\\Users\\Test\\Tools\\PortableGit\\bin\\git.exe"
    }

  6. Save file
Please note:
  • the path has double quotes to escape special characters
  • replace value (actual path) as per correct path on your workstation

Setup Visual Studio Code on your workstation with SFDX

Assuming you don't have admin access on your workstation, you can follow below mentioned steps to setup VSCode to use SFDX and be ready for Salesforce development.

Pre-Requisites

  1. First and foremost, setup SFDX on your workstation. If you haven't already completed, go through my earlier post and ensure that SFDX is setup correctly (Post: Quick Tips: Setup SFDX Manually without Admin access)

Steps to setup VS Code with SFDX

  1. Open VSCode
  2. Install extensions from Salesforce Extension Pack (Trailhead: https://trailhead.salesforce.com/en/content/learn/projects/quick-start-lightning-web-components/set-up-visual-studio-code)
  3. Navigate to desktop and create a batch file RunVSCode.bat and add following commands 


    CALL "c:\users\test\tools\nodejs\nodevars.bat"

    CALL "c:\users\test\tools\VSCode\VSCode-win32-x64-1.34.0\Code.exe"


  4. Save file
  5. Now you can run VS Code with Git and SFDX by double clicking on RunVSCode.bat file on your desktop

Comments

Popular posts from this blog

Lightning: Generate PDF from Lightning components with in-memory data

I'm sure as everyone is diving into lightning components development, they are getting acquainted with the nuances of the Lightning components framework. As well as, its current limitations. Being a new framework, this is bound to happen. Although we have our users still using salesforce classic, we have started using lightning components framework our primary development platform and Visualforce is considered primarily for rendering lightning components within Classic Service console.
Recently, while re-architecting a critical module, we encountered a problem wherein we needed to generate PDF from lightning components. Now, being Javascript intensive framework, it has limited room for such features (may be included in future roadmap). As of now, there is no native feature within the lightning framework to do so (at least I didn't find anything).

Common Scenario - Create Visualforce page to retrieve data and generate PDF For scenarios where the data exist within Salesforce, it…

Lightning: Generate PDF within Lightning Experience with Salesforce Data

Some time back I posted a solution to generate PDF from Lightning components using in-memory data.
Post url:http://www.vermanshul.com/2017/07/lightning-generate-pdf-from-lightning.html

It was developed for a specific scenario, wherein we need to generate PDF where:
User interface is Salesforce classicInitiated via Lightning ComponentData doesn't exist within Salesforce and is completely in-memory As complex and tricky this situation was, we did end up finding a stable and equally tricky solution.

However, I realize that there are still lack of solutions (or maybe my search skills are downgrading) to generate and automatically download PDF document from Lightning Experience, without using any lightning components, wherein data exists within Salesforce. You can use the earlier solution in that case, but it will be an overkill.

There are various solutions available to generate PDF from javascript. But, I still think the plain old method of converting HTML to PDF (via visualforce PDF g…

Quick Tips: Salesforce default Images

Well, I'm sure a lot of you still rely on using out of the box salesforce images for displaying quick icons within formula fields or even using them within your Visualforce pages. Lately, I realized that a lot of earlier resources are no longer accessible, so I tried to quickly extract all images from Salesforce CSS files and provide a quick reference here.

Please note, I've referenced all images from SF servers directly, so if anything changes, the image should stop rendering here. As these images are completely controlled by Salesforce, and in case they change anything, it might lead to image not being accessible.

Image pathImage/img/samples/flag_green.gif/img/samples/flag_green.gif/img/samples/flag_red.gif/img/samples/color_red.gif/img/samples/color_yellow.gif/img/samples/color_green.gif/img/samples/light_green.gif/img/samples/light_yellow.gif/img/samples/light_red.gif/img/samples/stars_100.gif/img/samples/stars_200.gif/img/samples/stars_300.gif/img/samples/stars_400.gif/im…