Description

An environmental variable must be set up on the user's local machine to execute a Salesforce Scenario at the command line,

This variable should be titled SF_PROFILE_NAME and contain your Salesforce Profile's name, which is created and managed within the GenRocket web platform. 


Note: You will need to run the Scenario in a new command line instance once finished with the steps in this article.

In This Article


Prerequisites

  • Set up and Activate a Salesforce Profile - Its name will be needed to create and set up the Environment Variable. Click here to learn more.


Windows Steps

Open the Start Menu on your Windows computer and complete these steps: 

  • Click on the Windows icon.
  • Type environment into the Search Bar.
  • Select Edit the system environment variables option in the search results.

     

    Note: Type "environment" into the Search Bar for newer Windows versions.

  • Click on Environment Variables at the bottom of the System Properties window.


  • In the User Variables section, click New...


  • Enter the following information for the new environment variable:
    • Name: SF_PROFILE_NAME
    • Value: Enter the name of the salesforce profile.


  • Click OK. 


Mac OS/Linux Steps

  • Open the shell startup file through your terminal window (e.g., .bash_profile).
  • Enter the following command to open your .bash_profile from any directory:

    nano ~/.bash_profile


  • Next, enter this command to apply changes in bash_profile: 

    source ~/.bash_profile

  • Enter this line into your shell startup file.  

    export SF_PROFILE_NAME=mysalesforceprofilename


  • Then exit this screen by pressing Control + X.



  • Enter Y to save the change.



  • Then press the Enter Key to finish and return to the terminal window.