Giter Site home page Giter Site logo

platformsf's Introduction

Welcome to my Courses!

Thank you for starting one of my courses on Pluralsight! Here's some information to help you get the configuration and code used throughout the courses installed into your own org. This repository covers the following courses

  • Salesforce Development: Fundamentals
  • Salesforce Development: Data Modeling and Management
  • Salesforce Development: Process Automation and Logic
  • Salesforce Development: User Interface
  • Salesforce Development: Testing, Debugging, and Deployment

If you run into any issues or want to leave some feedback for me, feel free to drop a comment in Pluralsight or reach out to me on Twitter or LinkedIn!

How Do You Plan to Deploy Your Changes?

Choose whether you want to use a developer org or scratch org. Choose a development model.

Tools to Install

Additional Resources

Options for Installing Files for Courses

Upload Code Using Git

  1. Clone the repository to your computer and navigate to that folder

    git clone https://github.com/adam17amo/platformDev.git 
    
    cd platformDev
    
  2. Open the platformDev folder in your IDE

  3. Create a new Developer Edition org or Enable an org as a Dev Hub and create a scratch org org with the alias platformDev

    3a. Authorize your Developer Edition org via your IDE or via a command

    sfdx force:auth:web:login --setalias platformDev --instanceurl https://login.salesforce.com --setdefaultusername
    

    3b. If you don't already have your Dev Hub authorized, authorize it via your IDE or run the first command. Once it's authorized, create your scratch org via the second command

    sfdx auth:web:login --setdefaultdevhubusername --setalias my-hub-org
    
    sfdx force:org:create -s -f config/project-scratch-def.json -a platformDev --durationdays 30
    
  4. Deploy the code to your org

    4a. If you're using a Developer Edition Org to deploy the code

    sfdx force:source:deploy -p force-app/main/default
    

    4b. If you're using a Scratch Org to deploy the code

    sfdx force:source:push
    
  5. Assign yourself the permission set

    sfdx force:user:permset:assign --permsetname Wired_Brain
    

Upload Code by Installing Package

  1. Install this package into your org
  2. Assign yourself the Wired Brain permission set
  3. (Optional) Create some sample data for Stores, Suppliers (Accounts), and Store Supply Orders. Feel free to use the data folder as a guide
  4. (Optional) Download the code to your computer to follow along
    git clone https://github.com/adam17amo/platformDev.git 
    
    cd platformDev
    

Installing Sample Data (Optional)

  1. Update the suppliers.json file to create sample data with the ID of the Supplier record type by running these commands in a terminal in your IDE

    1a. For Mac

    sfdx force:data:soql:query -q "SELECT Id FROM RecordType WHERE DeveloperName = 'Supplier'" | grep -E -o "([0-9])\w+" > recordType.txt; sed -i '' "s/\supplierRecordTypeId/$(cat recordType.txt)/g" data/suppliers.json; rm recordType.txt
    

    1b. For Windows

    sfdx force:data:soql:query -q "SELECT Id FROM RecordType WHERE DeveloperName = 'Supplier'" | findstr /R "012[a-zA-Z0-9]*" > recordType.txt
    
    (Get-Content data/suppliers.json) -replace 'supplierRecordTypeId', (Get-Content recordType.txt).substring(1,18) | Set-Content data/suppliers.json; rm recordType.txt
    

    1c. Manually (if the above scripts don't work)

    • Navigate to your Salesforce Org -> Setup -> Object Manager -> Account -> Record Types -> Supplier and get the ID from the URL (starts with '012')
    • In the code, navigate to the suppliers.json file in the data folder and replace all instances of supplierRecordTypeId with the ID from the previous bullet
  2. Import the sample data

    sfdx force:data:tree:import -p data/data-plan.json
    

platformsf's People

Contributors

adam17amo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.