I feel like this has been asked multiple times, but I looked through all the posts and just can't seem to get it right. (might totally be because of limited experience.)
I have an initial form that is used when new. (I have set the sharepoint integration to OnNew), this same form then has a submit button that then takes you to a new screen and form, which has a submit button that takes you to a new screen and form.
I then created a view form (which is also used for edit), with all the information that has been captured. The problem is it only displays the information from the first screen.
So I eventually figured out I should use patch, but all the patch codes I've found doesn't really make sense, and its not working.
So on my second screen submit button I now have this
SubmitForm([@EditForm1_1]); Set (OverallCriticality,DataCardValue112.Text); Patch('name of list',EditForm1_1.LastSubmit); Navigate(SecurityNew, ScreenTransition.Fade)
(I have set the overall criticality as I use it in the next screen and that works fine.) (I haven't done the 3rd screen yet as I thought it would be exactly the same. )
Does this code look right? Am I suppose to patch every single record? (I did try that but it kept giving me an error so used the above code which didn't give me an error but also didn't do the job.
PS: OnSuccess is set to Set(myLastRecord,EditForm1_1.LastSubmit) and the item is set to If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),First([@'Name of list']),SharePointIntegration.Selected)
Would really appreciate you helping me over this last hurdle!!!!