cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Misa
Kudo Kingpin
Kudo Kingpin

Power Apps sending old data to flow

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)

1 ACCEPTED SOLUTION

Accepted Solutions
SebS
Memorable Member
Memorable Member

@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); 

 

 

 

 

 

 


If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

View solution in original post

2 REPLIES 2
SebS
Memorable Member
Memorable Member

@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); 

 

 

 

 

 

 


If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

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!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,822)