Skip to content

Run the Project

John Tanner edited this page Feb 25, 2019 · 11 revisions

To see the project in action, configure the debugger and set breakpoints or deploy the code to your vault. Once the project is in debug or deployed to vault, you can run the project.

There are two parts to this project:

  • Create a AWS Hire Purchase quote record in vault. This triggers the AWS Finance application to generate a quote and use Vault's REST API's to update the quote details for the AWS Hire Purchase quote record in vault.
  • Get a re-quote for the same record from the previous part by calling the record action Loan re-quote. As previously the Vault's REST API's are used by AWS to update the quote details.

Part 1

  1. Navigate to your Admin -> Business Admin -> Loan Approvals tab in your vault and Create a new record:

  2. Enter values in the following fields:

    • Forename e.g. John
    • Surname e.g. Smith
    • Item e.g. Bicycle
    • Loan Amount e.g. 2000
    • Loan Period (Months) e.g. 36
  3. Click Save.

  4. Verify that the Approval Status field has been updated to Pending Finance Approval, by the trigger vSdkAwsQueueSampleTrigger. The Approval Status field will be updated to Pending Finance Approval.

  5. Wait a moment then refresh the browser page

  6. Verify the AWS finance application has generate a quote and provided details by populating the fields in the AWS Finance Details section.

That completes the first part of the example. The second part will cover using a record action to get a re-quote.

Part 2

  1. Open the vSDK AWS Hire Purchase Quote record created in part 1.

  2. Click the custom actions menu and select Requote from AWS Finance.

  3. Verify that the Approval Status field has been updated to Pending Finance Approval, by the trigger vSdkAwsQueueSampleTrigger. The Approval Status field will be updated to Pending Finance Approval.

  4. Wait a moment then refresh the browser page

  5. Verify the AWS finance application has generate a re-quote and provided details by populating the fields in the AWS Finance Details section. The interest rate will have changed from 15% to 12% and quote reference number will have been updated.

    </uploads/a613947511a43636cc95e64f1e78f195/2019_02_25_15_39_19_Veeva_Vault_Admin_Loan_Approvals.png" label="step5" width="70%">

That completes the sample project. Please refer to the wiki pages and code for more details about the project.