cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

PowerApps opening wrong list item from SharePoint

Hi,

When I am selecting from a SharePoint list to edit an item, Powerapps will always open the top item of the SharePoint list.

 

Any way to fix this?

 

Craig

1 ACCEPTED SOLUTION

Accepted Solutions
navPowerApps
Regular Visitor

Hi,

I had faced similar kinda issue in my powerapps. I have tried aplying the below Rule as workaround,

 

If(IsBlank(SharePointIntegration.SelectedListItemID) || IsEmpty(SharePointIntegration.SelectedListItemID),First('[DataSource]'),First(Filter('[DataSource]',ID=SharePointIntegration.SelectedListItemID)))

 

After applying the Rule it started working for me. 

 

View solution in original post

9 REPLIES 9
Jeff_Thorpe
Super User
Super User

Did you generate the PowerApp from the SPList to get started or are you creating from a blank PowerApp and adding the SPList to the app? I ask because the PowerApps generated SPList app wires everything up for you and I have never experience an issue with the selected item not working as expected.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Anonymous
Not applicable

Hi Jeff,

 

I generated it from the SP list itself. I've done it this way a couple of times myself with no issue. 

I've had a read online and there is not much to go by apart from perhaps the 'Item' field picking up the wrong field?

 

Thanks

 

Craig

Anonymous
Not applicable

Can anyone advise what my settings should look like perhaps on the SharePoint Integration page to cater for this?

Anonymous
Not applicable

@audrieg @v-micsh-msft @v-monli-msft @Meneghino Can any of you advise on how to link PowerApps to a selected SharePoint list field please? My app is currently only every loading the very first SharePoint list item.

 

Thanks

Meneghino
Community Champion
Community Champion

Hi @Anonymous, it would seem that the issue is with the Item property of whatever is opening when you select an item. Could you please share the OnSelect property of the gallery/item selector and then also the closest thing to the item property of the object that should display your item?
navPowerApps
Regular Visitor

Hi,

I had faced similar kinda issue in my powerapps. I have tried aplying the below Rule as workaround,

 

If(IsBlank(SharePointIntegration.SelectedListItemID) || IsEmpty(SharePointIntegration.SelectedListItemID),First('[DataSource]'),First(Filter('[DataSource]',ID=SharePointIntegration.SelectedListItemID)))

 

After applying the Rule it started working for me. 

 

View solution in original post

Thanks for the fix. After applying condition in form >> advanced properties, it worked for me.

This issue has just arisen for me as well. Can you advise where you loaded the condition

Did you get any response where to set this condition ?

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,106)