You are here:
Post Deployment Steps for Short Cycle Work
After downloading and deploying the Short Cycle Work static resources, complete these post-deployment steps.
Deploy Sample Data for Short Cycle Work
Deploy the sample data to test Short Cycle Work features.
-
Retrieve Apex classes from the source org and then deploy to the target org using the
EU_SFS_Flows_SampleData.zip file.
- Open VS Code.
- Ensure that you're using the latest version of SFDX and the org authorization plug in. Enter these commands in the VS Code terminal: sfdx update followed by sfdx plugins:install @salesforce/plugin-auth. Wait for the first command to complete before entering the second one.
- Create a project in VS Code. Press Ctrl+Shift+P (Windows) or Cmd+Shift+P (macOS) to open the command palette. Enter and select SFDX: Create Project with Manifest. Select Standard, then enter any project name you like.
- Unzip the components file locally into your force-app\main\default folder.
- Replace the contents of the package.xml file in the manifest folder with the contents of the package.xml file from the downloaded zip file.
- Authenticate your target org by selecting SFDX: Authorize an Org in the command palette.
- Deploy the components to your target org. Using the Explorer pane in VS Code, right-click on the force-app\main\default folder and select SFDX: Deploy Source to Org. The retrieved components are now available in your target org.
-
Execute the following Apex code in an anonymous window in Developer Console:
EUFlowCreateSampleData.createRecords().
Enable Work Plan Settings
Enable work plans and work steps in Field Service settings.
- From Setup, in the Quick Find box, enter Work Plan, and then click Work Plans.
- Select Generate Work Plans and Work Steps from templates and selection rules.
- Save your changes.
Add Work Type to Work Order Page
Add the Work Type field to the Work Order Page to provide reference data to Short Cycle Work Flows components.
- From Setup, click Object Manager.
- In the Quick Find box, enter Work Order , and then click Work Order.
- Click Page Layout.
- Click Work Order Layout.
- From Fields, drag Work Type to the Information section of Work Order Detail.
- Save your changes.

