Hi everybody
We were wondering if it's possible to populate a Dataverse choice column within a form with external values from an API.
Let's just say we would be using the following API: 'JSONPlaceholder - Guide (typicode.com)' and we would like to use JavaScript on the onLoad of the form to populate the choice field within the form with the title values from the API, is this possible?
Thank you in advance.
@parvezghumra theoretically that's doable but it would create more issues over bringing value.
@a33ik I'm wondering whether another option might be to implement the API based values are a Virtual Table, and to have lookup to target the Virtual Table on the main form, which can then rendered as a drop-down if required using a PCF control?
Hello,
That won't work, unfortunately with OOB choice fields. Value selected from the list has to be present in the optionset field declaration.
The only thing I can think of is:
WarrenBelz
109
Most Valuable Professional
Michael E. Gernaey
82
Super User 2025 Season 1
MS.Ragavendar
72