Hi @Anonymous ,
Could you please share a bit more about your issue?
Do you mean that the SharePointIntegration.Selected.MyFieldName formula would still return previous selected item value when you edit another item in your SP List?
Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. Please take a try with the following fixed solution:
Set the OnEdit property of the SharePointIntegration control to following:
Refresh('Your SP List'); // Add formula here
Set(Var1, SharePointIntegration.Selected.MyFieldName); // save the formula result into a variable
EditForm(SharePointForm1)
In addition, you could also consider use the following formula to retrieve the field value of the selected item:
LookUp('Your SP List', ID = SharePointIntegration.SelectedListItemID, MyFieldName)
or
LookUp('Your SP List', ID = SharePointIntegration.SelectedListItemID).MyFieldName
Please consider take a try with above solution, check if the issue is solved.
Best regards,