Hi I seem to be a little lost.
I have a canvas app, with SharePoint Online as my data source.
I have the following code on my OnSelect property of my save button:
If(
!IsBlank(DataCardValue28.Selected)
Or !IsBlank(DataCardValue20.Selected)
Or !IsBlank(DataCardValue19.SelectedDate),
SubmitForm(Form1Approval),
Notify("You need complete the form by including your name, approve or reject and date ", NotificationType.Error, 3000)
)
On the OnSuccess of the form
If(DataCardValue20.Selected.Value = "Rejected", Office365Outlook.SendEmailV2(Form1Approval.LastSubmit.YourName.Email, "A request has been " & DataCardValue20.Selected.Value & "by" & CurrentUser.FullName, "Please review <a href='https://apps.powerapps.com/play/URL&T=" & Form1Approval.LastSubmit.ID & "'> Link to submitted form </a> "));
If(DataCardValue20.Selected.Value = "Approved", Office365Outlook.SendEmailV2(Form1Approval.LastSubmit.HolderName.Value, "A request has been " & DataCardValue20.Selected.Value & "by" & CurrentUser.FullName, "Please review the form and approve/reject <a href='https://apps.powerapps.com/play/URL&T=" & Form1Approval.LastSubmit.ID & "'> Link to submitted form </a> ",{Cc:CurrentUser.Email & ";" & DataCardValue28.Selected.Email}))
I was getting an error to do with the To when i attempted to save the data, so I have // both the functions on the OnSuccess but now the little ants go past on the screen, but going back to SharePoint the data isnt written back. Anyone know where to start or how to resolve this?