RE: Autocomplete on external API call
Hi Boss,
It is not the case, you can have dynamic values for your custom control.
You can refer same pcf control from pcf galary and retrieve data dynamically instead of pre defined.
Refer code :github.com/.../Autocomplete
In that cods in file index.ts
Replace following line.
var optionsPropValue = context.parameters.options.raw;
Here you can call your api and get data and set response Jason as optionsPropValue.
And in menifest.xml you can comment out following line.
<property name="options" display-name-key="optionsValue" description-key="List of options separated by comma" of-type-group="optiondatatypes" usage="input" required="true" />
Regards,
Ketan
If this helps, please mark verified.