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 / How to track a history...
Power Apps
Answered

How to track a history of unsuccessful request submissions in PowerApps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

I need your help. I have created a PowerApp using SharePoint list as a source.

I have also configured email notification on submission.

 

One of the users who submitted a request through the PowerApp web URL. He also got a confirmation email for the submission, however, his entry was not submitted to the SharePoint list. I found a reason that he didn't have access to the list and that is why his entry was not there. Now, I am trying to find out if there is a way to track his entry either through the PowerApps form or SharePoint list. I know, in Sharepoint list we can track the versioning but not sure if that specific entry will show up or not as he didn't have the access the list when he submitted a request.

Ideally, I should have restricted email notification if a record was not inserted to the list. Now, I am struggling to track the entry on to the PowerApp form.

 

Please advise.

Categories:
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    If you are using a form control then you could move your email notification code to the OnSuccess property of the form. This way when the SubmitForm() is triggered the email will only be sent if the data was successfully saved.

  • RezaDorrani Profile Picture
    12,145 on at

    Hi @Anonymous 

     

    PowerApps does not store any data unless  you added logic to store information in App Offline

     

    Soince user submitted and data went to Flow (assuming flow is sending data to SharePont)

    Just go back to flow and re-run that flow (the one which failed)

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks Jeff.

    As of now, an email notification is On Select - Submit Button, though I am checking all the required field. I will change my email notification code OnSuccess of the form.

     

    Do you advise if there is a way I can track previously entered records through the form? 

  • Verified answer
    Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    There is no way to tell if any of the previous records failed to submit. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I wish there could be a way to find similar like MS flow where we can see the entries even though it was not successful.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Reza,

    I have not used flow to send a notification email, but I have used Office365.SendEmail option on the submit button.

    Here is the logic I have used.

    ====================================

    If(
    !Form1.Valid,
    // Then
    SubmitForm(Form1),
    // Else
    // If(
    // IsEmpty(DataCardValue1.Text),
    // Then
    // Notify("Failed to submit, fill all the required fields and try again.",NotificationType.Error),
    // Else
    //ResetForm(Form1);
    SubmitForm(Form1);
    Navigate('Thank you');
    Notify("Submitted new record.",NotificationType.Success),
    Office365.SendEmail(
    User().Email,
    "EPO Intake Form - Submission Confirmation : " & DataCardValue1.Text ,
    "Hi <b></b>" & Left(User().FullName,Find( " ",User().FullName) - 1) & "," & " <br><br>
    Thank you for your submission." & "<br><br><b></b>" & "We will review and respond no later than two (2) business days. <br><b> <b></b></b>" & " <br> Please feel free to reach out to ABC@XYZ.com if you have any questions.<b></b><br>" & "<br>Thanks!" & "<b></b><br>",
    {
    IsHtml: true,
    Importance: "Normal",
    Cc: "ABC@XYZ.com"
    }
    )
    );

  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @Anonymous 

     

    As @Jeff_Thorpe  mentioned, your best case will be to send email onSuccess property fo the form control

     

    However, the data that user tried to post is lost and there is no way to recover that

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Jeff_Thorpe @RezaDorrani 

    Need some suggestion on the form submission page.

     

    I have changed the logic for Submit button and used below

    !Form1.Valid;SubmitForm(Form1)

     

    And, on the success of the form1, I have used the below code. I am trying to display the form value in the email, which previously worked on Submit Button when I used this code, however, it's not working for Form onSuccess.

    Any thought?

     

    If(
    !Form1.Valid,
    SubmitForm(Form1),

    SubmitForm(Form1);
    Navigate('Thank you');
    Notify("Submitted new record.",NotificationType.Success),
    Office365.SendEmail(
    User().Email,
    "EPO Intake Form - Submission Confirmation : " & DataCardValue1.Text ,
    "Hi <b></b>" & Left(User().FullName,Find( " ",User().FullName) - 1) & "," & " <br><br>
    Thank you for your submission." & "<br><br><b></b>" & "We will review and respond no later than two (2) business days. <br><b> <b></b></b>" & " <br> Please feel free to reach out to AC@XYZ.com if you have any questions.<b></b><br>" & "<br>Thanks!" & "<br><br><br><br><br><br>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" & "<br><b><br>Project Name : </b>" & DataCardValue1.Text & "<br><b><br>PR # </b>: " & DataCardValue3.Text & "<br><b><br>Business Group : </b>" & DataCardValue12.Text & "<br><b><br>Anticipated Launch Date : </b>" & DateValue(Text(DataCardValue13.SelectedDate)) & "<br><b><br>Third Party Supplier : </b>" & DataCardValue7.Text & "<br><b><br>Brief Description : </b>" & DataCardValue8.Text & "<br><b><br>Notes : </b>" & DataCardValue10.Text &"<b></b><br>",
    {
    IsHtml: true,
    Importance: "Normal",
    Cc: "satish.pandey16@XYZ.com"
    }
    )
    );

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 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard