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 Apps / SharePointForm1 always...
Power Apps
Answered

SharePointForm1 always shows first item in editor

(0) ShareShare
ReportReport
Posted on by 385

steve_hendy_0-1642084465642.png

Why is the editor still showing me the first item in the list when I have a lookup in item?

 

If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),LookUp([@'Training Certificates'],ID=305),SharePointIntegration.Selected)

 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @steve_hendy 

    Change your Item formula to the following:

    Coalesce(SharePointIntegration.Selected, LookUp('Training Certificates', ID=305))

     

    I hope this is helpful for you.

  • steve_hendy Profile Picture
    385 on at

    What a very clever chap you are.  Thanks for the quick reply works perfectly.  I did try googling it 😀

  • steve_hendy Profile Picture
    385 on at

    Its stopped working now.  Its reverted back to the first item. ☹️

  • steve_hendy Profile Picture
    385 on at

    Maybe there is a setting interfering with it under app settings.

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @steve_hendy 

    Based on that formula, you would have either the item selected in your list when you do a New/Edit of the item, or the record with ID 305.  It is impossible to have record 1.  So, your Selected in the list must be record 1.

     

    The way Coalesce works is it returns the first non-blank parameter.  So if your SharePointIntegration.Selected has a record, that will be the one shown.  If there is no record selected (pretty much would never happen), then it would show record with ID 305.  If for some very rare reason, both are blank, then your form would show "getting data" and never display.

     

    SO...your Selected is record 1 or there is something else going on in your app.

  • steve_hendy Profile Picture
    385 on at

    Its ID=1 

    steve_hendy_0-1642093573385.png

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @steve_hendy 

    Right...so then your SharePointIntegrated.Selected item is 1

  • steve_hendy Profile Picture
    385 on at

    So how do I make it id=305 like the picture above?  Its the same issue in edit or view mode.

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @steve_hendy 

    Well, I'm not really understanding your purpose then... Is the purpose of your app to always display and edit record 305?  Or is your purpose to display and edit the record selected from your list?

  • steve_hendy Profile Picture
    385 on at

    Only when I'm in the editor for all modes.  Not when I'm in SharePoint.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard