Accelerator Order History LWC - Source
Configuration
Service Cloud Lightning Web Component Configuration
- Setup Visual Studio Code by following this trailhead: https://trailhead.salesforce.com/en/content/learn/projects/quick-start-lightning-web-components/set-up-visual-studio-code
- Open the project folder in the Visual Studio Code app
- Import the Apex class
GetCustomSettings
in theconfig
folder to the Salesforce org - Create a new custom settings entry called "OrderHistoryAPI" and add a field of type
URL
with the name "URL" - Set value of the new
URL
field to the URL of the deployed Salesforce Experience API (e.g., https://{REPLACE_HOST_NAME}/api/customers/{customerId}/orders?sdate={fromDate}&edate={toDate}) - Authorize the org to publish the code
- Add the published LWC component under the Salesforce contact details page