Skip to main content

Notifications

Announcements

No record found.

Power Platform integration forum
Unanswered

Add Options Dynamically in Choice Attribute

Posted on by 7
Hi All,

Please help me with below situation. I want to fetch some options from an external API and then put those options in an attribute(datatype is Choice) in a Custom Table(in Power Apps).

Fetching Options from External API is not a problem, it is working fine. I'm not sure how to add these options in that attribute via Cloud Flow/PowerAutomate?

Note
: I don't want to add these options manually.

<Details>
1. Suppose external API is - 'https://myclient.com/b2bapi/options/city'
2. Response from external API will be - 
{
    "data": [
        {
            "name": "Delhi",
            "id": 1412
        },
        {
            "name": "Jaipur",
            "id": 1553
        },
        {
            "name": "Bhopal",
            "id": 1414
        },
        {
            "name": "Hyderabad",
            "id": 1537
        },
        {
            "name": "Surat",
            "id": 1411
        }
  ]
}
3. Add these City Options in 'EmpCity' attribute via Cloud Flow/PowerAutomate.



Note : I want to achieve this via Cloud Flow/PowerAutomate. If this is not possible via Cloud Flow, please suggest how can I achieve this!!!

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,349 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,212 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Product updates

Dynamics 365 release plans