
Announcements
So when creating an app, i've got a splash screen setup and then it loads to a profile page, however when the profile page loads I am getting messages (2 x form successfully submitted and mail.SendEmailV3 failed: The method "SendEmailV3: has an invalid value for parameter "to")
My OnStart code is listed below:
LoadData(
SubmissionFormCol,
"SubmissionFormCol",
true
);
/*Check to see if there are pending offline submissions*/
If(
CountRows(SubmissionFormCol) <> 0,
/*If so loop is started to collect all submissions into SP list and emails are sent to relevant addresses*/
ClearCollect(SubmissionFormColCount, SubmissionFormCol);
ForAll(
SubmissionFormCol,
Collect(
'End of Shift New Report',
First(SubmissionFormColCount)
);
Remove(SubmissionFormColCount, First(SubmissionFormColCount));
Mail.SendEmailV3(DataCardValue4.Text, "End of Shift Report", "<Table width='100%' Align='center' style='border-collapse: collapse'>
so i think it is happening every time because there is nothing there that actually deletes the saved data from the device, so every time it runs it thinks there are submissions to be submitted, not sure how to resolve though.
The email error I think is because because the code for the email needs to pull the information from the collection, not from the datacards as these will be empty but again, no idea how to resolve