Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Power Apps sending old data to flow

Posted on by 246

Hello.  

 

I built a power app that collects data on form and creates html.  When the user clicks submit, it kicks off an approval flow and converts the HTML to a pdf.  The flow works fine but I have noticed that it keeps sending the old data when i create a new item in the sharepoint list.  Not the new data that has been inputted.   I tried resetting the form when its first opened but it doesnt work.   I feel like its something simple but I cant seen to figure it out.  This is the formula im using to send the data (if its helpful):

 

Set(varBAHHeader1, JSON(BAHHeader1, IncludeBinaryData));
Set(varBAHHeader2, JSON(BAHHeader2, IncludeBinaryData));
SubmitForm(SharePointForm1);Navigate(Screen1,Fade); Test.Run(HtmlText1.HtmlText,Concatenate(DataCardValue3.Selected.DisplayName,Label4.Text),DataCardValue15.Text, DataCardValue3.Selected.DisplayName,DataCardValue11.Selected.DisplayName, DataCardValue5.Selected.DisplayName, DataCardValue12.Selected.DisplayName, DataCardValue13.Selected.DisplayName,DataCardValue6.Text,DataCardValue7.Text, DataCardValue8.Selected.Value,DataCardValue2.Selected.Value)

  • Misa Profile Picture
    Misa 246 on at
    Re: Power Apps sending old data to flow

    Thank you very much @SebS. I moved the to the end of the formula and it worked!  Wouldve nvr guessed it.  Thank you again for your help!

  • Verified answer
    SebS Profile Picture
    SebS 4,149 on at
    Re: Power Apps sending old data to flow

    @Misa 

     

    I'm not sure, but it looks like the issue is the order. You submitted the form before the flow. It's just a guess.

     

    try putting SubmitForm at end and see if it works

     

     

    Set(varBAHHeader1, JSON(BAHHeader1, IncludeBinaryData));
    Set(varBAHHeader2, JSON(BAHHeader2, IncludeBinaryData));
    Test.Run(HtmlText1.HtmlText,Concatenate(DataCardValue3.Selected.DisplayName,Label4.Text),DataCardValue15.Text, DataCardValue3.Selected.DisplayName,DataCardValue11.Selected.DisplayName, DataCardValue5.Selected.DisplayName, DataCardValue12.Selected.DisplayName, DataCardValue13.Selected.DisplayName,DataCardValue6.Text,DataCardValue7.Text, DataCardValue8.Selected.Value,DataCardValue2.Selected.Value);
    SubmitForm(SharePointForm1);Navigate(Screen1,Fade); 

     

     

     

     

     

     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,532

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,050

Leaderboard