Skip to content

Salesforce backend to support the Alexa via Heroku front end

Notifications You must be signed in to change notification settings

chadevanssf/salesforce-hospital-room

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

salesforce-hospital-room

Providing the business side of the Alexa interface for Hospital Room Manager.

Installation Order

  1. Install Salesforce backend (this project)
  2. Install Heroku app (see https://github.com/chadevanssf/alexa-hospital-room)
  3. Install Alexa Skill (see above)

Installation Instructions

Salesforce DX (SFDX) CLI

  1. Authenticate with your hub org (if not already done):

    sfdx force:auth:web:login --setdefaultdevhubusername --setalias myhuborg
    
  2. Clone the salesforce-hospital-room repository:

    git clone https://github.com/chadevanssf/salesforce-hospital-room
    cd salesforce-hospital-room
    
  3. Create a scratch org and provide it with an alias (hrm):

    sfdx force:org:create --definitionfile config/project-scratch-def.json --setdefaultusername --setalias hrm
    
  4. Push the app to your scratch org:

    sfdx force:source:push
    
  5. Assign the Hospital_Room_Manager permission set to the default user:

    sfdx force:user:permset:assign --permsetname Hospital_Room_Manager
    
  6. Load sample data:

    sfdx force:data:tree:import --plan ./data/Hospital_Room__c-plan.json
    
  7. Open the scratch org:

    sfdx force:org:open
    
  8. Activate Process Buider flow: "Alexa Update Status"

Salesforce DX (SFDX) in the Cloud

Deploy using SFDX, click the button below:

Deploy

Salesforce Package in the Cloud

  1. Deploy via Metadata API, click the button below

Deploy to Salesforce

  1. Use Import Wizard to import the data:

force-ide/data/hospital_rooms.csv

Helpful commands

  • Convert MDAPI format (e.g. Force IDE) into SFDX format:

    sfdx force:mdapi:convert --rootdir ./force-ide/src/
    
  • Convert SFDX format into MDAPI (e.g. Force IDE format):

    sfdx force:source:convert --outputdir ./force-ide/src/ --packagename hospital-room-manager
    
  • Deploy MDAPI to a non-scratch org:

    sfdx force:auth:web:login --setalias hrm-org
    sfdx force:mdapi:deploy --deploydir ./force-ide/src/ --targetusername hrm-org --wait 2
    

    Load the data and assign the permission set manually

  • Export the latest data

    sfdx force:data:tree:export --outputdir ./data --query ./data/Hospital_Room__c-query.soql --plan
    

About

Salesforce backend to support the Alexa via Heroku front end

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages