cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
golabem
Level: Powered On

Create pdf from Html text - flow captures wrong data

Hi,

 

I have custom form app based on sharepoint list in powerApps.

My flow converts html text from powerapps to pdf version of submited form. The trigger is standard save button.

My problem is that, when I submit new form, flow always captures wrong data, not what I entered, and saved into sharepoint list.

 

For example:

Most of fields are Parent.Default, and flows always capture data from my first item on sharepoint list (thats what I see in powerapps studio no matter how many items on list I have).

One of my fields are non-editable with formula on default Last(sharepointlist).columnName + 1 . And flow gets exactly this value - if my last list item was NO4 (which I want inside of my created pdf), flow captures value NO5.

 

I think maybe it is somehow connected with reseting form, or Item property of SharePointForm1, but I dont know how to fix this.

 

Here is my code for SharePointIntegration and SharePointForm1:

SharePointIntegration:
OnNew:  NewForm(SharePointForm1);
OnSave: SubmitForm(SharePointForm1);

SharePointForm1:
OnSuccess: createPDF_flow.Run(main.HtmlText, SharePointForm1.LastSubmit.ID);
           RequestHide();
Item: If(
        IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),
        First(sharepointlist),
        SharePointIntegration.Selected
)

 

Do you know how to handle this error ?

 

Thank you

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Create pdf from Html text - flow captures wrong data

 

Hi @golabem ,

 

Could you share a screenshot of the Flow configuration? We can try to analyze whether the result is due to the configuration of Flow based on the screenshot.

You could also post your question in the PowerApps community to see if there is a problem with the formula you are currently using.

https://powerusers.microsoft.com/t5/Power-Apps-Community/ct-p/PowerApps1

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Create pdf from Html text - flow captures wrong data

 

Hi @golabem ,

 

Could you share a screenshot of the Flow configuration? We can try to analyze whether the result is due to the configuration of Flow based on the screenshot.

You could also post your question in the PowerApps community to see if there is a problem with the formula you are currently using.

https://powerusers.microsoft.com/t5/Power-Apps-Community/ct-p/PowerApps1

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

golabem
Level: Powered On

Re: Create pdf from Html text - flow captures wrong data

Thank you I will try to ask on PowerApps community, because when I check successful flows it captures bad data on very beginning ( on "PowerApps" trigger). Sorry for confusing communities

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,984)