When processing an insurance claim and needing to retrieve the customer’s insurance policies from a web service, the correct approach is to use a data page. Data pages are designed to retrieve data from various sources, including web services, and cache that data for use in your application. This ensures efficient use of resources and proper encapsulation of the data retrieval logic.
To implement functionality where pressing a button invokes a data transform and then creates a new case, you need to configure an action set on the button control. An action set allows you to define a sequence of actions that occur in response to events, such as clicking a button. This sequence can include calling a data transform and then creating a new case, which matches the required functionality described in the question.