Hello,
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, instead of 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
)
I'm sure flow configuration is 100% okay, because when I check successful flows, it captures bad data on beginning (on trigger "PowerApps").
Do you know how to handle this error ?
Thank you