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

Announcements

News and Announcements icon
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:
  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard