The Box Canvas App project is an SalesforceDX project that contains Lightning Aura Components for each Box UI Element wrapped in a Salesforce CanvasApp. These examples are designed to be used for demonstration, development, and test purposes
- Install and configure the Box for Salesforce Managed Package: https://community.box.com/t5/How-to-Guides-for-Integrations/Installing-and-Configuring-Box-For-Salesforce/ta-p/180
Note: Dont forget to add the Box VisualForce components to each of the record type layouts.
- Setup your Salesforce DX environment: https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.install_setup_develop
- In VS Code, use the cmd+shift+p shortcut and select SFDX: Authorize Org.
- Click the Deploy to Salesforce button below, login, and deploy
- Copy the Consumer Secret for the Box CanvasApp
Salesforce Setup > Apps > App Manager > Box CanvasApp > View
Consumer Secret > Click to reveal > Copy
- Deploy the box-ui-elements-heroku app to Heroku
- Clone this repository
git clone https://github.com/kylefernandadams/box-canvas-app
- Change directory to box-canvas-app
- Update the canvasUrl with the domain created from the Heroku deployment
- Update the callbackUrl with the domain created from the Heroku deployment
- Update the contactEmail with your own
- Deploy changes to Salesforce using the sfdx-cli:
sfdx force:source:deploy -p force-app -u me@example.com
- Go to Lightning app builder page or Experience builder for any record type and drag and drop any of the UI Elements with Box logos.
This project is comprised of open source examples and should not be treated as an officially supported product. Use at your own risk. If you encounter any problems, please log an issue.
The MIT License (MIT)
Copyright (c) 2022 Kyle Adams
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.