How to configure autopopulated field using REST API

We are trying to set up the following:

  1. User inputs postcode

  2. The address section is automatically filled in using a REST API (postcodes.io)

Currently we have :

Address data type with fields

  • House name/number

  • Street name

-City

-County

  • Country

-Postcode.

We also have a working REST connection to the API website that can gather information based on postcode We used step 1,2,3 from https://academy.pega.com/challenge/adding-external-data-source-data-type/v3/in/24071.)

How can we configure the set up detailed above to autopopulate each address field using information gathered from the REST connection

Thanks

@RoryP397 Probably the easiest way is to triggering the external API, fetch the information based on that postal code and do another UpdateCaseDetails API call. Another way might be using one of the DX API v2 REST API calls and refresh the prefilled view.