kevinn-veeva edited this page Dec 14, 2018 · 8 revisions

Introduction

The vsdk-service-basics project provides tutorials for various Vault Java SDK services. The services are interfaces that interact with data via triggers and actions.

Setup

First, you need to configure your vault so the sample trigger runs smoothly. You can do this by deploying a prepackaged set of components (.vpk).

Deploying the vSDK Service Basics VPK Package

  1. Clone or download the sample Maven project vSDK Service Basics project from GitHub.
  2. Run through the Getting Started guide to set up your deployment environment.
  3. Log in to your vault and navigate to Admin > Deployment > Inbound Packages and click Import:
  4. Locate and select the \deploy-vpk\vsdk-service-basics-components\vsdk-service-basics-components.vpk file in the project's directory on your computer.
  5. From the Actions menu, select Review & Deploy. Vault displays a list of all components in the package.
  6. Click Next.
  7. On the confirmation page, review and click Finish. You will receive an email when Vault completes the deployment.

Once the package has been deployed, you will want to review the configuration and understand the normal behavior so you can observe the effects of the sample trigger code.

Below is a rundown of the included components.

Objects
  • vSDK Service Basics (vsdk_service_basics__c)

How to run

To see the project in action, configure the debugger and set breakpoints or deploy the code to your vault.

  1. Log into your Vault: https://login.veevavault.com/
  2. Start the Vault Java SDK Debugger.
  3. Go to Admin -> Business Admin tab and click on vSDK Service Basics in the left navigation panel
  4. Click the Create button in the list page
  5. Enter your name in the Name field
  6. Click Save and you should see a record get created with two "Related to: " records.
  7. Repeat steps 4-6 with the same Name value.
  8. The triggers will create a Copy of: '<name>' record and relate it to the first record that you created.
  9. Stop Running the project.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.