Salesforce Field Service Lightning integrates with the ByBox applications to allow your users to work with ByBox products. ByBox provides a network of secure locations for delivery and collection of packages.

Before you begin

Make sure you have:

  • Salesforce instance with Field Service package installed
  • A ByBox Account created and provided with the API Key

Login

  1. Go to https://login.salesforce.com/ on your browser and login to Salesforce account with the given credentials.

Install ByBox Package

  1. On another browser tab, copy and paste the latest package link provided.
    For example: https://login.salesforce.com/packaging/installPackage.apexp ...
    The Package link shows the necessary details required for set-up.
  2. Depending on your organization requirement, select the appropriate user group for the installation.
    For example: For development purposes, you can choose Install for All Users.
  3. Leave other options as default and select Install.


  4. Select “Yes, grant access to these third-party web sites” and select Continue.


    The package starts installing and an email notification is sent once the installation is completed.



  5. If the app is taking longer to install, select Done and wait for the email notification.


  6. View the installation status under Setup > Quick Find > Installed Packages.


  7. Go to App Launcher and type the application name in the search box to verify if it has installed.


Configure ByBox

You need to configure your ByBox within Salesforce Field Service Lightning. 

Custom Metadata Configuration

  1. Go to ByBox in the Quick Find and select it.


  2. Go to Settings and enter the data provided by ByBox for your account.

    API EndPoint: https://konnect-partnerapi-uat.bybox.com/Api
    Auth EndPoint: https://konnect-partnerapi-uat-bybox.com/Auth/core/connect/token



  3. Select Save to create ByBox Settings.

Remote Site Settings Configuration

  1. Search for Remote Site Settings in Quick Find and select it.
  2. Verify the the ByBox_Partner_API URL, should be https://konnect-partnerapi-uat.bybox.com .

Configure Konnect Web

  1. Search for CSP Trusted Sites in Quick Find and select it.
  2. Click on New Trusted Site.
  3. Enter the following details and click Save.
    Trusted Site Name: KonnecUATWeb
    Trusted Site URL: https://uat.bybox.com
  4. Search for Session Settings in Quick Find and select it. Select the checkbox options as per the screenshot and click Next.
  5. Enter the following domain and click Save.
    Domain: *.bybox.com
  6. Select other checkbox options as per screenshot and click Save.
  7. Search for Tabs in Quick Find and select it. Edit the details as per screenshot and select Next.

  8. Enter the following details and click Next.
    Tab Label: Konnect
    Tab Name: Konnect
  9. Enter the following details and click Next.
    URL: https://uat.bybox.com/KonnectMobileWeb/
  10. Verify and click Save.

Configure UI Object

Add Additional Fields Using Object Manager

  1. Go to App Launcher and type the application in the search box
  2. Select the application name.

View and configure using Object Manager

  1. Within the application, go to Setup and select Setup for current app.


  2. Select Object Manager to view all objects. Search for a particular module within the Quick Find section

Configure Location Module

To add the fields to Location layout:

  1. Select Location > Page Layouts > Location.
  2. Add the following from Fields section by dragging it and placing it under Information
    1. Identifier
  3. Add the following from Related Lists section by dragging it and placing it under Related:
    1. Product Items
    2. ByBox General Access Assignment
  4. Select Save and then Yes to accept the changes.

Configure Product Module

To add the fields to Product layout:

  1. Select on Product > Page Layouts > Product Layout.
  2. Add the following from Fields section by dragging it and placing it under Information.
    1. Enable For ByBox
  3. Select Save and then Yes to accept the changes

 Configure Product Request Module

To add the fields to Product Request layout:

  1. Select Product Request > Page Layouts > Product Request Layout
  2. Add the following from Fields section by dragging it and placing it under Information:
    1. Work Order Line Item
  3. Click on Save and then click on Yes to accept the changes.

Configure Work Order Module

To add the fields to Work Order layout:

  1. Select Work Order > Page Layouts > Work Order Layout
  2. Add the following from Related Lists section by dragging and placing it under Related Lists:
    1. Product Requests
    2. Product Request Line Items
  3. Select Save and then Yes to accept the changes.

Configure User Module

  1. Search for User in the Quick Find
  2. Click on User > Page Layouts > User Layout.
  3. Add the following from Fields section by dragging it and placing it under Additional Information on the Layout:
    1. ByBox
  4. Click on Save and then click on Yes to accept the changes.

Configure Map

  1. Go to Work Orders.
  2. Create or Select an existing Work Order > Related > Select item from the Product Request Line Item.
  3. On this page Go to SetUp > Edit Page.
  4. Under Standard category on the left panel, drag the Visualforce component and place it wherever you want in the layout.

  5. Click on the Visualforce component, and edit the fields available on the right side of the panel.

  6. Uncheck showLabel.

  7. Change Visualforce Page Name to BoxLocation.

  8. Change the height to 450 pixels or more for better visibility.

  9. Click on Save.

Add Records

  1. Go to Location > All Locations.
    The location records will be fetched again with the help of API.
  2. Go to Products > Create New Product.
    Creating product in Salesforce reflects in ByBox.
  3. Go to Location > Related > Products > Create New Product.
  4. Go to ByBox > Locations > Inventory > Contents > Track-in.
  5. Go to SalesForce > Work Order > Create Product Line and Product Request Line Item.
  6. Go to SalesForce > Assign Product Line Item to Location.
  7. Go to ByBox > Inventory Orders >Work order is mapped and product item is requested.
  8. Go to Salesforce > Create Service Resource.
  9. Go to Salesforce > Create Service Appointment > Related > Assign Service Resource created.
  10. Go to ByBox > Inventory > Orders > Product
    The product is assigned to Engineer and the Engineer can track the package and deliver.

Uninstall the ByBox package


  1. Select Setup.
  2. Search for Installed Package under Quick Find and select it.
  3. Select Uninstall next to ByBox Package.


  4. A list of components which will be uninstalled is displayed


  5. Select the radio button Do not save a copy of the packages data after uninstall.
  6. Click OK.
  7. Select check box to accept package uninstallation.
  8. Click Uninstall.


    9. The package is uninstalled and displayed under Uninstalled Packages.