Providing the business side of the Alexa interface for Hospital Room Manager.
- Install Salesforce backend (this project)
- Install Heroku app (see https://github.com/chadevanssf/alexa-hospital-room)
- Install Alexa Skill (see above)
-
Authenticate with your hub org (if not already done):
sfdx force:auth:web:login --setdefaultdevhubusername --setalias myhuborg
-
Clone the salesforce-hospital-room repository:
git clone https://github.com/chadevanssf/salesforce-hospital-room cd salesforce-hospital-room
-
Create a scratch org and provide it with an alias (hrm):
sfdx force:org:create --definitionfile config/project-scratch-def.json --setdefaultusername --setalias hrm
-
Push the app to your scratch org:
sfdx force:source:push
-
Assign the Hospital_Room_Manager permission set to the default user:
sfdx force:user:permset:assign --permsetname Hospital_Room_Manager
-
Load sample data:
sfdx force:data:tree:import --plan ./data/Hospital_Room__c-plan.json
-
Open the scratch org:
sfdx force:org:open
-
Activate Process Buider flow: "Alexa Update Status"
Deploy using SFDX, click the button below:
- Deploy via Metadata API, click the button below
- Use Import Wizard to import the data:
force-ide/data/hospital_rooms.csv
-
Convert MDAPI format (e.g. Force IDE) into SFDX format:
sfdx force:mdapi:convert --rootdir ./force-ide/src/
- see https://developer.salesforce.com/blogs/developer-relations/2017/07/migrating-existing-projects-salesforce-dx.html
- FYI: run in the root folder of the eclipse project, files end up in ./force-app/main/default/ folder structure.
-
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