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 / Power Apps and Power A...
Power Apps
Answered

Power Apps and Power Automate submission inconsistency

(1) ShareShare
ReportReport
Posted on by 23

Hello there!

 

I'm fairly new to Power Apps and Power Automate. I'm building an online form for people to submit data requests. I just started bringing Power Automate into the picture in order to take the user's submitted information and turn it into a PDF attachment in a confirmation email that will go out to us and the person who submitted it. 

 

I feel like I have my formulas set up correctly, but I'm finding something weird happening. On the first Power Apps load up, my test runs correctly with both my label text string and my pulled data from Power Apps showing up, and on tests after that first one, the data pulling from Power Apps completely disappears. Please note I haven't published the app yet. Here are some screenshots in case that's helpful:

 

The flow I'm testing out:

JSchloss_0-1671489558880.png

My OnSelect formula to connect the values:

JSchloss_1-1671489610944.png

 

The PDF that's generated from the first submission:

JSchloss_2-1671489697405.png

 

And then the PDF that's generated every time after the first submission looks exactly like the above image, except the "2022-12-23" and "Test9--inputs" is gone.

 

Has anyone else come across this before? 


Thanks in advance for your help!

 

Jessica 

 

 

Categories:
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @JSchloss Instead of running the action on Data cards concurrent to SubmitForm, I recommend you keep only the SubmitForm(Form1) and move everything else to the OnSuccess property of Form1

    and rewrite the formula:

     

    PRRGeneratePDF3.Run(Text(DataCardValue7.SelectedDate,"yyyy-mm-dd"), DataCardValue1.Text)

     

     to something like

     

    PRRGeneratePDF3.Run(Text(YourDateFieldName,"yyyy-mm-dd"), YourTextFieldName)
    
    //put the above inside the OnSuccess property of Form1
    //replace YourDateFieldName and YourTextFieldName above with the names of the form fields and anything else you need as appropriate
    //recommend to use the actual field or column names if you can, and not the individual DataCardValue fields.

     

    See if the above works better @JSchloss 

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @JSchloss ,

    Try writing Run the fun function before SubmitForm function as the form resets all the fields after SubmitForm function.

  • JSchloss Profile Picture
    23 on at

    @poweractivate and @NandiniBhagya20 thank you both for responding to my question! I tried both solutions, and neither seemed to work. Now that I'm looking at the input/outputs in Power Automate, it doesn't look like it's picking up the information I'm entering into Power Apps. It pulls the user email just fine, but the information I specifically am asking to have people fill out doesn't want to move from Power Apps into Power Automate. 

     

    I should mention that I will keep the Run function on the form's OnSuccess.

  • Al_10 Profile Picture
    1,691 Super User 2024 Season 1 on at

    @JSchloss 

     

    it is likely your flow gets empty data from powerapps.
    To verify it you can test:

     

    PRRGeneratePDF3.Run(
     Coalesce( Text(DataCardValue7.SelectedDate,"yyyy-mm-dd"), "no data line 1"), 
     Coalesce( DataCardValue1.Text, "no data line 2")
    )
    

     

    if that is the case, you need to troubleshoot the form inputs (flow is ok)

     

  • JSchloss Profile Picture
    23 on at

    @Alex_10 Thank you for that test code! Yes, that came through in the PDF, so it looks like something is up with my inputs. Problem is...I don't see anything out of place 😅. I thought I found what was different, but it's still generating a PDF with missing dynamic data. From the different tutorials and instructions I've found, I seem to be connecting everything up correctly...

  • JSchloss Profile Picture
    23 on at

    Okay, I STILL couldn't figure out what was causing this issue, so I started my form over and tested the flow after every change I made in the form. I managed to isolate the problem to having renamed the required "Title" column that is pulled from the SharePoint list. That broke at least part of it (although the Test(DataCardValue7.SelectedDate, "yyyy-mm-dd") stopped working along the way, so I still need to tackle that). It seemed to prevent my data entered in the form sending over to Power Automate.

     

    EDIT: And now I'm back to not knowing again 😕 I just went in to add 

     

    Notify("Success: Inspection Form was submitted", NotificationType.Success) &
    NewForm(Form1)

    [it didn't seem to matter which order I listed everything in--both blanked out the PDF]

    on OnSuccess with my flow, and it's back to being a blank PDF. When I got rid of it to go back another step, it's still a blank PDF.

  • Verified answer
    JSchloss Profile Picture
    23 on at

    I'm still not 100% sure why it's the case, but it seems to be tied to the fact that I was trying to work with the default title column from my Sharepoint list. Renaming it broke the entire thing, so instead I turned it invisible and stuck it to the end of the form, filling in with a default of "default."

     

    I could also only put my flow on the button at the end of my form before the "SubmitForm" action, while keeping the success message and new form actions on the OnSuccess property. No matter how I arranged these 4 items, this is the only one that would work.

     

    Again, I don't quite understand the why, but I wanted to loop back to this post and close it out. 

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

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard