cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bee
Level: Powered On

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

6 REPLIES 6
Community Support Team
Community Support Team

Re: Bug: SharePointIntegration actions

Hi @Bee,

 

Thanks for the feedback.

Please try to add:

Set(myVar,"")

Under OnCancel and OnSave property of the SharePointintegration part.

See if this would make any difference.

 

Regards,

Michael

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.
Bee
Level: Powered On

Re: Bug: SharePointIntegration actions

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.

leward
Level: Powered On

Re: Bug: SharePointIntegration actions

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.

leward
Level: Powered On

Re: Bug: SharePointIntegration actions

FYI, here is the code from SharepointIntegration.OnEdit:

 

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

ChemaMateos
Level: Powered On

Re: Bug: SharePointIntegration actions

Try this

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

Highlighted
ChemaMateos
Level: Powered On

Re: Bug: SharePointIntegration actions

It's a Bug.

 

Try this (OnEdit and Onview)

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

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 83 members 4,585 guests
Please welcome our newest community members: