Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

SharePoint customized form default item issue



when you customize SharePoint forms with Power Apps, there's a little (or sometimes quite big) problem with the OOB code in SharePointForm1 Item property. Currently there's default code to get the first item of the SharePoint list if no item is selected:

"If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),First('YourListName'),SharePointIntegration.Selected)"


I know this is made for the work in the Studio (documentation here), but this creates a problem if user has a slow connection. For example, if you have an approval flow attached to the item/form, approver clicks the hyperlink from the email to open the form and if he or she has a slow connection, it will show momentarily (maybe a second or two) the first list item's data and then it will load the correct item's data.


You can test this with browser's developer tools by setting throttling to Slow 3G.

Community Support
Community Support

Hi @zarski ,


I think you can directly set the value of the variable on the onedit/onnew... attribute.

You could decide whether to display the default item according to the value of this variable.

You don't need to wait for the result of SharePointIntegration.Selected.


Best Regards,


Thanks, sure we can do that. I just wanted to point out that the default "out-of-the-box" code for the sharepointform's item attribute is not very good for slow connections and SharePointeIntegrations.Selected should be enough...

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,019)