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 / Create SharePoint List...
Power Apps
Answered

Create SharePoint List Item with Patch and Display Item on Edit Screen

(0) ShareShare
ReportReport
Posted on by 299

Hello Community,

I've patched information collected on three separate screens to a single SharePoint list item. On the last screen I want to be able to navigate to an Edit screen and populate the screen with the information from that list item. The OnSelect property of the button to navigate to the Edit screen is UpdateContext({varShowAPPopUp:false}); Navigate('Edit Separation Notice', ScreenTransition.Fade, {varRecord:varRecord}). I've tried using {varRecord:ThisItem} but ThisItem is not recognized. The Default property for each control on the Edit screen is varRecord.ColumnName, e.g., varRecord.CancelSeparation.

 

I am also using varRecord to populate the record on the Edit screen in a deep linking URL and that functions as expected. I initialized varRecord in the App > OnStart, Set(varRecord, LookUp(TestOSCMainv2, ID = Value(Param("itemID")))) and added the same statement to the Edit screen's OnVisible property. The Edit screen is not populating the item and I'm not sure why. What am I missing? Thank you in advance for your help.

 

oscEdit1.pngoscEdit2.pngoscEdit3.pngoscEdit4.pngoscEdit5.png

Categories:
I have the same question (0)
  • developingteal Profile Picture
    392 on at

    I am not really sure, in my experience I would separate everything apart. Like set varRecord at multiple points between screens, and check the value manually using the variables screen to make sure it is updating correctly. I think this will help you find the disconnect or if no values are going to it. 

     

    At the very least this will help you debug - separate it so you can see what's going on, because right now it's hard to see. Then simplify it like you have it once you have a working solution, and edit until the simplified works.

  • Verified answer
    WarrenBelz Profile Picture
    154,447 Most Valuable Professional on at

    @developingteal ,

    It is because you did the right thing here and set a Global Variable

    Set(
     varRecord, 
     LookUp(
     TestOSCMainv2, 
     ID = Value(Param("itemID"))
     )
    ) 

    and then did this

    Navigate(
     'Edit Separation Notice', 
     ScreenTransition.Fade, 
     {varRecord: varRecord}
    )

    which creates a Context Variable (a completely separate variable) trying to refer to the global item, but actually creating ambiguity and referring to itself, which is blank. On any screen, the Context item overrides any Global Variable of the same name- so either drop this bit

    {varRecord: varRecord}

    or give it another naming convention at the start

    Set(
     gblRecord, 
     LookUp(
     TestOSCMainv2, 
     ID = Value(Param("itemID"))
     )
    ) 

    then

    Navigate(
     'Edit Separation Notice', 
     ScreenTransition.Fade, 
     {varRecord: gblRecord}
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • PVLove Profile Picture
    299 on at

    Thank you @WarrenBelz ,

    I didn't see your response until today but I was finally able to make this work!

    Patti

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard