Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Add Options Dynamically in Choice Attribute

(1) ShareShare
ReportReport
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!!!

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans