Connect to External API- Design Approach

There are multiple questions here.

  1. Retrieving the records.
    1. Yes, you can use that pega docs Pegasystems Documentation
    2. the one @RameshSangili Infinite Scrolling in Constellation Table for REST API
    3. and a few others focusing specifically on how to get the data from the Data Reference “search and select pattern” to the API call.
      1. Empty List on Load in Constellation Landing page
      2. Advanced Use Cases for Search and Select Pattern
      3. Managing external system of record through REST with CRUD actions in Pega Constellation
  2. Search multiple times, new search. This should happen implicitly if you use Search and Select.
    1. You may have to set your data page refresh strategy to “Reload once per interaction” to getting loading and not caching.
  3. Selecting and passing this on
    1. If you use a data reference, then the selected details will be stored in your case. You can then pass that on in another datapage as a parameter. See Quickly building dynamic form field behavior with Constellation and App Studio: Cascading dropdowns | Pega for an example of pass the parameters on. So you shouldn’t have to do anything in the UI, form refresh, trying to set values etc. So long as the data model is correct those details should be passed on in the model.