You are here:
Deploy Salesforce Datapacks for Contact Center Console
After you download Contact Center Console SFDX datapacks, deploy them to your Salesforce org.
Before you begin:
-
For orgs that use Standard OmniStudio Content and Runtime extract EUC_Console_OSRT_Sfdx_Datapacks to the Console_SFDX folder, and the EUC_Console_OSRT_IDV_Sfdx_Datapacks to the Console_SFDX_IDV folder. Create the folders if they don't already exist.
-
For orgs that use Standard OmniStudio Content, extract EUC_Console_Sfdx_Datapacks to the Console_SFDX folder, and the EUC_Console_IDV_Sfdx_Datapacks to the Console_SFDX_IDV folder. Create the folders if they don't already exist.
-
For each folder, create the file sfdx-project.json which contains the following code:
{ "packageDirectories": [ { "path": "salesforce_sfdx", "default": true } ], "namespace": "", "sfdcLoginUrl": "https://login.salesforce.com", "sourceApiVersion": "59.0" } -
Move the package.xml files from salesforce_sfdx/main/default to the Console_SFDX folder and the Console_SFDX_IDV folder.
-
If you are deploying Contact Center Console WITHOUT Field Service, make these adjustments to the files:
-
Remove these files from the salesforce_sfdx/main/default/classes folder:
- SfiEnergyConsoleFSAPIFactory.cls
- SfiEnergyConsoleFSAPIFactory.cls-meta.xml
- SfiEnergyConsoleFSAPIFactoryTest.cls
- SfiEnergyConsoleFSAPIFactoryTest.cls-meta.xml
-
Delete these entries from package.xml and save:
-
<members>SfiEnergyConsoleFSAPIFactory</members> -
<members>SfiEnergyConsoleFSAPIFactoryTest</members>
-
-
Delete these entries from the salesforce_sfdx\main\default\profiles\EU Minimum Access.profile-meta.xml file and save:
-
<classAccesses> <apexClass>SfiEnergyConsoleFSAPIFactory</apexClass> <enabled>false</enabled> </classAccesses> -
<classAccesses> <apexClass>SfiEnergyConsoleFSAPIFactoryTest</apexClass> <enabled>false</enabled> </classAccesses> -
<userPermissions> <enabled>true</enabled> <name>FieldServiceAccess</name> </userPermissions>
-
-
Remove these files from the salesforce_sfdx/main/default/classes folder:
- Open Console_SFDX in Visual Studio Code.
- Authenticate your org if you have not already done so. See Prepare Your Org for Contact Center Console Static Resources.
-
Deploy components from to your target org.
-
In VSCode, in the left panel, right-click the salesforce-sfdx folder.
For Mac devices, CMD + click the salesforce-sfdx folder.
-
Click SFDX: Deploy Source to Org.
If you see errors during deployment, you must deploy all the components again. If deployment fails for any component, select the components that failed and deploy them individually.
-
In VSCode, in the left panel, right-click the salesforce-sfdx folder.
After the datapacks are deployed, perform the post-deployment steps:
-
For Contact Center Console with Field Service, see Post Deployment Steps for Contact Center Console with Field Service.
After you complete the post-deployment steps, you can deploy the sample data for Contact Center Console. See Deploy Sample Data for Contact Center Console.
