Hi
I have a custom app based in a sharepoint list.
The app gets information from users and when an user submits the information creates a PDF with that information, it also has a PenInput to get a digital signature.
For the first records the app worked but now I'm having problems because the pdf generated is not taking the information from the last submit record, it's taking the information from the record submitted before.
For example:
At 11:30 user A submitted a record and at 11:35 user B submitted another one. The pdf created for the B is taking the information from the user A and not the information that user B just submitted.
I don't really know why it's happening because for the first 20 users it worked and didn't have any problem.
I have a gallery that gets information from last submitted record and populates the pdf with this information. This galley is set on items with: Last(BD) - BD is the SharePoint List.
In the form I have a button with the next formula in OnSelect:
SubmitForm(Form1);
PenInput.Run( "Here I have HTML code to concatenate text with gally items", i.e:: &Concat(Gallery2.AllItems, ID)
"and I have a PenInput to get a digital signature <img width='120px' src=" &JSON(PenInput1.Image, JSONFormat.IgnoreBinaryData) & ">
, "Ded"&Last(BD).Modified);
Reset(PenInput1);
NewForm(Form1)
PenInput is a flow, when I trigger it runs like this: Run (Createfile_Filecontent,InitializeVariable_Value)
InitializeVariable_Value is an Ask in PowerApps to set the name in this case is this line in the formula: "Ded"&Last(BD).Modified)
Createfile_Filecontent is an Ask in PowerApps step to create the PDF and here is where the flow takes the html code, concat fields and PenInput.
I really don't understand why it worked for the first records and now it's failing,
Thanks for your help and your time.

Report
All responses (
Answers (