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 / SharePoint customized ...
Power Apps
Unanswered

SharePoint customized form default item issue

(0) ShareShare
ReportReport
Posted on by 168

Hello,

 

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.

Categories:
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    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,

    Wearsky

  • zarski Profile Picture
    168 on at

    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...

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard