I am using the following formula to submit a form and then patch attachments. However, several fields are not being populated on the submit, or are being cleared by the second patch function. How do I correct?
Set(varRecord,If(
Form1.Mode = FormMode.New,
Patch('GPFS Continuous Improvement', Defaults('GPFS Continuous Improvement'), Form1.Updates),
Patch('GPFS Continuous Improvement',Gallery1.Selected, Form1.Updates)
)); If(!IsBlank(varRecord),
Notify("Your request has been submitted! (ID: "& varRecord.ID &")", NotificationType.Success),
Notify("Your request was Not submitted", NotificationType.Error)
);