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 Automate / Sharepoint Get Item re...
Power Automate
Answered

Sharepoint Get Item returning wrong list

(0) ShareShare
ReportReport
Posted on by 58

I have two lists with similar names -- one just has "_forms" after its name.  The fields are almost identical but there's a couple unfortunate naming mismatches.  But that mismatch helped me discover what is wrong with my flow. 

 

I was troubleshooting and outputting the following, expecting them to be the same:

items('For_each_5')?['group_key']

outputs('Get_current_security_group')?['body/group_key']

The flow is iterating through the items in the first list and for each one, does a lookup by id into the second list.  However, my output is showing that nothing was being returned for the second list.  When I dig into the Run, it says it's pulling from the correct list name (the ids match), however, the resulting fields list are from the first list!  Even stranger, it's not even pulling in the group_key field (which exists in both lists) and therefore it outputs as empty.  

Am I hitting a strange bug or what's going on??

Categories:
  • Justanotherguy2 Profile Picture
    58 on at

    Note that I did enable returning all columns in the Get Item.

  • Justanotherguy2 Profile Picture
    58 on at

    I initialized a variable and set it to the second array and it was able to see the group_key field in the dynamic list.  I am thinking there's a bug in the Run debugger.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Justanotherguy2 ,

     

    Could you please post you flow in edit mode with some screenshots?

     

    Best regards,

  • Verified answer
    Justanotherguy2 Profile Picture
    58 on at

    I figured it out.  Power automate and power apps are using the internal name for the lists, not the display name.  I had to go into the list settings, and click on the column name, then look in the URL to see what the internal name is.

    This is reason #1000 why working with sharepoint/powerapps is so incredibly frustrating.

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 Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard