web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Continuos integration ...
Power Apps
Answered

Continuos integration problem

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

My main problem is to call an api for each row in a table in dataverse.

 

I wanto to add a new column to one of  my table dataverse. This column shoud be a mandatory entry for all the rows.

For whe rows that i will add after this change will not be a problem to put the value in it since this filed is linked to a table B in the dataverse and will let the user select one of the value available in the key column af the table B.

For the old records this is a bit more difficult because the new value needs to be setted in an automatic way to a value. I wa thinking about the possibility to make a function for each row that passes a data and get in response the new value that will be saved in the new column.

 

For example: i have a table with a column named CITY but i want the table to store also the COUNTRY of this city.

I will create a column name COUNTRY and make it searchable with a set of option given by another table called City-Country.

At the same time a function in every old row will be called and given a city it will make an http request to an api to retrieve the country where the city is located and the name of the country will be aseve in the correct row that called the api.

 

Is this something feasible? How could I do it? are there other way to do something like this?

 

My main problem is to call an api for each row in a table in dataverse. For the api i think i can do one myself

  • AhmedSalih Profile Picture
    6,680 Moderator on at

    Hello, @Anonymous, have you considered using Power Automate to implement your requirement?

     

    Regards,

    Ahmed

    If my reply helped you, please give a 👍. And if it has solved your issue, please consider a 👍 & Accepting it as the Solution to help other members of the community find it more.

    My Blog: www.powerplatformplace.com

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Power Automate is not something I've ever work with, could you please explain me what kind of flow and process should solve my problem?

  • AhmedSalih Profile Picture
    6,680 Moderator on at

    @Anonymous, knowing that you won't have the issue when creating new records and it is only for the old records to be changed once. You can use Instant flow: start from Manually trigger a flow action. Now, can you create a Dataverse table that has the City and Country to avoid calling APIs from the flow?

     

    If my reply helped you, please give a 👍, & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.

    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM on weekends.

    Visit my Blog: www.powerplatformplace.com

     

     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    yes, i think so

  • AhmedSalih Profile Picture
    6,680 Moderator on at

    @Anonymous, then you can create the flow I mentioned in my previous reply. In that flow you will need to use the List Rows action with a filter to only retrieve those records with no Country value. Then you will Loop through them and and use another List Rows action to get the Country of the current city in the loop from the new table that you created for the City and Country. 

     

    You can start and let me know if you need help with something along the way. You might also help me with some screenshots when you have question in regard the flow you will build. 

     


    If my reply helped you, please give a 👍, & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.

    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.

    Visit my Blog: www.powerplatformplace.com

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    andlor_1-1661783774867.png

     

    How can I iterate through this kind of output from list rows? there is another problem, sometimes the value that i am looking for as source to get the new value is empty, so when i retrieve the rows, the field that i am looking for is not available like in the 3 rows that are on the image, how can i check if the field is available or not?

     

     

  • Verified answer
    Gowri Halan Profile Picture
    262 on at

    @Anonymous  In your flow you can retrieve all the records with Specific city. Then call country API once to get country details and update the all the records with country.

    For example, Retrieve all the records with City Name A. You will get record list. The get country to which city A belongs. Update all the records with Country. you can use batch operation to update all in one request. See if below steps helps.

    1. See how many records doesn't have country value set but has city value. 

    2. Get the first record and read the city. Then from the list get records with this city value.

    3. Get country and update the record that matches above 2nd condition.

    4. call the same above 1 2 3 step again and again.

     

    This is pretty much possible via code. But you can check the possibility via Power automate.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard