QuestionQ112

Extend the user experience

A multinational company mandates that every phone number use the format: country code + area code + phone number.

The application design team decides to use a custom Power Apps component framework (PCF) control to ask users for an area code and correctly format the phone number.

You must retrieve the list of valid area codes when a contact record opens and before a user enters a new phone number.

In which function should you call webAPI.retrieveMultipleRecords?

  • A updateView
  • B notifyOutputChanged
  • C getOutputs
Explanation

updateView runs when the PCF control’s property bag changes, including when the bound record context is provided or updated. It is therefore the applicable lifecycle function for loading data needed to render the control for the opened contact record. notifyOutputChanged merely notifies the framework of changed output, while getOutputs returns those output values. The PCF Web API method retrieveMultipleRecords retrieves a collection of table records.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!