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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / for each elements in s...
Power Automate
Unanswered

for each elements in sharepoint list

(1) ShareShare
ReportReport
Posted on by 128
Hi,
i want to loop through elements in a sharepoint list, but "getitemresponse" is not a table value.
How can i break every records? and get a field value? 
I'm using the FX preview
 
THanks
I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at
    Hi there,
     
    Could you please share your flow screenshot to understand your issues in depth and assist on this?
     
    Thanks,
    Deenu
  • Suggested answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    If you want to go through Sharepoint list you need to use "Get items" -action to get all the items in the sharepoint list. Then in For each loop you put =GetItemsResponse.value


    And then the loop goes through each row in that sharepointlist. If you want to get certain column value from that currently looped row then use =CurrentItem.ColumnName (in my example its field_4)

    The currentItem should show the column names when you open its attributes.


    Flow example:


    Or if you want just one item without looping through the list then you can use Get item instead of Get items
  • diegomarino Profile Picture
    128 on at
    thanks both, it was actually easy but i'm new to PAD
    I tried to find some documentation to learn more, can you give me some useful link?

    Then, the field i need has some simple HTML tags, that are rendered in sharepoint, i need to fill a textbox in a site, do i need to do something to render the html format? 
  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    Happy to hear it helped! Yeah unfortunately documentations on many actions are often incomplete or missing entirely.

    About your second question can you explain a little further? How does the HTML tags look like when you retrieve them in PAD? what would be example of an outcome?
    Does it return like this <b>abcValue</b> and you want the abcValue? Or do you also want it to be bold or whatever the tag is rendering the text as? If you also want it to be for example bolded if the tag is <b> then first thing is to make sure the textbox supports HTML rendering.
  • diegomarino Profile Picture
    128 on at
    hi, yes i'm speaking about <br> and stuff like that, but i think that the Power automate pop up message cannot handle it, so i think i'll have no problem when i use the text properly

    However, i'm struggling with another problem. As you can see i want to confront two variable, but i cannot get the correct syntax
  • Suggested answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    In Power Fx always add equal sign in the beginning.

    So to check if variable1 is same as variable2: =variable1=variable2
  • diegomarino Profile Picture
    128 on at
    thanks. It's a very strange language thou...
  • diegomarino Profile Picture
    128 on at
    hi, sorrry to come back, but i made the flow and i get the html tags problem

    I get:
    Gent Dott. , <br><br> <div>non avendo avuto il piacere di sentirla mi permetto di disturbarla ancora visto che ho di molto ampliato il panel dei miei clienti e ricerco figure da inserire in un percorso di crescita. Se vuole possiamo sentirci per un approfondimento, altrimenti le do un grande in bocca al lupo.</div><br><br> Grazie dell'attenzione <br><br> 
     
    clearly the system do not render the html tags, the text is shown properly in sharepoint, i take it from sharepoint itself and put it in a website textbox.
    How can i render the html instead of the characters? i tried encodeHTML function but it's not good

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard