Deploy & Run Debugged Code
Now that you’ve debugged the code locally and confirmed that the trigger is working as expected, you need to deploy the code to Vault so that the custom code executes for all users. Then, you will run the code one more time in Vault to verify that the deployment succeeded and your code changes work as expected.
Deploy Code
Section link for Deploy CodeTo deploy code to Vault with the Maven plugin
- In IntelliJ®, open the Maven menu from the IntelliJ® sidebar, and double click on the
vaultjavasdk:packageMaven goal. Thedeploymentfolder will be updated with a new.vpkfile with your code changes. - Run the
vaultjavasdk:deployMaven goal from the Maven sidebar menu to deploy the code to Vault. You will receive an email when Vault completes the deployment.
Run Code
Section link for Run CodeTo run our newly deployed trigger code in Vault:
- Log in
to your Vault. - Navigate to Business Admin > Objects > vSDK Hello World.
- Click Create.
- Enter a name in the Name field.
- Click Save.
- Verify that a vSDK Hello World Child record is created with the same name as the parent record, and that the Hello World field is set to the parent record.
Congratulations, you’ve completed the Vault Java SDK Debugger Tutorial!
Next Steps & Continued Learning
Section link for Next Steps & Continued Learning- Browse our available sample code to use as starting points for your custom SDK code
- Review the JDK Allowlist
- Learn more about the Limits & Restrictions you must follow when developing with the Vault Java SDK, such as time, size, and memory limits
- Understand the Data Type Map, which is how Vault field types map to Java types
- Ask any questions you have in the Vault for Developers community on Veeva Connect