I am currently facing a pretty serious issue with submitting data to SharePoint from a custom form.
The issue is somehow related to If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),First('YourListName'),SharePointIntegration.Selected)
Often i will log a choice value to a variable, when the user opens the form in edit mode. Then i will compare it to the DataCardValue.Selected.Value once they submit the form to see if the value changed.
I have now noticed a strange behavior when submitting the form. The form will briefly flash in wrong values, when the form submits(it happens just as the form window closes). It seems like these values are values from the first item in the list. The values arent saved in the datasource, but DataCardValue.Selected does now not contain the correct value, because of this. I have tested it with a PowerApps trigger, and i can verify, that the flow is indeed triggered with values from the first item in the list and not values from the item, that was just submitted.
This makes it close to impossbile to do any form of logic with the PowerApps trigger, which is in my opinion one of the greatest selling points for PowerApps.
I have now experienced similar issue with the FormMode. When the NewForm is submitted it will briefly flash the EditForm. This also makes any if statement regarding FormMode in the OnSucces property of the form void, as the FormMode is detected as being in EditMode eventhough its a new form. These timing issues makes it hard to do logic in custom forms. To circumvent it I have set my own Form variable in the SharePointIntegration property in regards to OnNew, OnEdit and OnView.
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
The largest Power BI, Power Platform, and Data conference in New Zealand