Table of Contents

Search

  1. Preface
  2. Introduction to Business Entity Services
  3. Enterprise Java Bean Business Entity Service Calls
  4. Representational State Transfer Business Entity Service Calls
  5. Simple Object Access Protocol Business Entity Service Calls
  6. Services for Cross-reference Records and BVT Calculations
  7. Supporting Corporate Linkage Service
  8. External Calls to Cleanse, Analyze, and Transform Data
  9. Using REST APIs to Add Records
  10. Using REST APIs to Upload Files

Example: Custom Validation and Logic for Business Entity Services

Example: Custom Validation and Logic for Business Entity Services

You can test the custom validation and logic when you add and merge the Person records. The custom validation checks if the Person record has an address. The custom logic does not allow you to merge two telephone numbers. Use REST APIs to create and merge the Person records.
  1. To check the validation when you create a Person record, perform the following steps:
    1. Use the Create API to create a Person record without an address. You get a validation error.
    2. Use the Create API to create a Person record with an address. The operation is successful.
  2. To check the custom logic when you merge records, perform the following steps:
    1. Use the Create API to create two Person records with addresses and telephone numbers.
    2. Use the Preview Merge API to merge the two Person records. Add
      overrides
      to the preview merge request to merge the addresses and the telephones. The response shows a single address, but two telephone numbers. The custom logic prevents the merging of telephone numbers.

0 COMMENTS

We’d like to hear from you!