Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Showing external API values in a choice field

(0) ShareShare
ReportReport
Posted on by 223

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?

 

NativeNass__0-1695995888526.png

 

 

Thank you in advance.

  • a33ik Profile Picture
    3,304 Most Valuable Professional on at
    Re: Showing external API values in a choice field

    @parvezghumra theoretically that's doable but it would create more issues over bringing value. 

  • Parvez Ghumra Profile Picture
    1,579 Super User 2025 Season 1 on at
    Re: Showing external API values in a choice field

    @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?

  • NativeNass_ Profile Picture
    223 on at
    Re: Showing external API values in a choice field

    Thank you @a33ik 

     

    We'll look into that!

  • Verified answer
    a33ik Profile Picture
    3,304 Most Valuable Professional on at
    Re: Showing external API values in a choice field

    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:

    1. Usage of Whole Number/String field (depending on the value you would want to save in Dataverse).
    2. Development of PCF Control with the corresponding field type, querying the values from external source and populating the list of dropdown with the values from external source.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 109 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 82 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 72

Overall leaderboard