web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / OnStart - messages app...
Power Apps
Unanswered

OnStart - messages appear when app first loads

(0) ShareShare
ReportReport
Posted on by 16

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'>

Categories:
I have the same question (0)
  • KevDaRed Profile Picture
    16 on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard