Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Bug: SharePointIntegration actions

I need to set a field value to a variable when the form loads. I added Set(myVar,SharePointIntegration.Selected.Title) to OnEdit, but this method doesn't work consistently. Half of the time, the variable would show the value of the previously opened item.


The screenshot shows myVar is equal to "Orange" from another item. It'll change to "Apple" if I manually execute the Set function again by clicking the button. This behaviour seems to happen only when the form takes a little longer to load than usual.


PowerApps Bug 2.pngPowerApps Bug.png

Community Support
Community Support

Hi @Bee,


Thanks for the feedback.

Please try to add:


Under OnCancel and OnSave property of the SharePointintegration part.

See if this would make any difference.




Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Frequent Visitor

Hi @v-micsh-msft


I've tried your sugestion but it didn't make any difference.


This bug occurs much more frequently in edit mode. It only happened around 1 out of 20 times in view mode.


The action is slow enough to witness. When the form loads up, the Title and myVar values are from the previous item. In a split second, both fields get updated to the current item values. I can see that myVar doesn't change when the Title field changes. Seems like the Set function is not executing properly sometimes.

Not applicable

I am having the same problem, or a very similar one.  The first time I Edit an item, the field is coming up blank.  The second time and following, it seems to be OK.  When I tried the suggestion above, the first time it comes up blank, the second time, it comes up with the value from the row that was selected first, and the third time and following it seems to be OK.

Not applicable

FYI, here is the code from SharepointIntegration.OnEdit:


Set(varRequestStatus,SharePointIntegration.Selected.Status); EditForm(frmNew)

Try this

Set(varRequestStatus,LookUp( 'NAME OF YOUR LIST', ID=SharePointIntegration.SelectedListItemID , Status))

Frequent Visitor

It's a Bug.


Try this (OnEdit and Onview)

Set(myVar, LookUp( 'NAME OF YOUR LIST', ID=SharePointIntegration.SelectedListItemID , Title))

Frequent Visitor

This worked for me. How should we report such nasty bugs ?

This worked sporadically for me.  Turning on the Experimental Feature for Formula-level error management seemed to help.  Seems odd.

Please upvote the following so we have a better way to deal with new edit form loads.:

Frequent Visitor

I have found that in order for SharePointIntegration.Selected to be set the SharePoint item must be selected. If you go through the SharePoint item menu and click edit then SharePointIntegration.Selected does not get set - it will show the previously selected list item.


I believe this is a bug

Helpful resources

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (5,634)