Hello Geeks,
This might a silly question but I would really need solution for this?
How could I get the Newly created List item Id on SubmitForm(form1). Its would be good if I get this id in OnSuccess or any other way around.
I need this value in the PowerApps same form after it is submitted
Solved! Go to Solution.
Hi @Gopal,
You should be able to get the Last submitted Record with the LastSubmit property of the EditForm control.
For Example:
EditForm1.LastSubmit
To Get the Id, switch to:
EditForm1.LastSubmit.ID
Adding the document for reference:
LastSubmit – The last successfully submitted record, including any server generated fields.
EditForm and Display form controls in PowerApps
If you have any further questions, please post back.
Regards,
Michael
Hi @Gopal,
You should be able to get the Last submitted Record with the LastSubmit property of the EditForm control.
For Example:
EditForm1.LastSubmit
To Get the Id, switch to:
EditForm1.LastSubmit.ID
Adding the document for reference:
LastSubmit – The last successfully submitted record, including any server generated fields.
EditForm and Display form controls in PowerApps
If you have any further questions, please post back.
Regards,
Michael
Hello @v-micsh-msft @Gopal
i am using 3 forms in my app and at last on click of a button, the data source is updated by using this formula
Patch(DataSource, Item_Being_Edited, Form1.Updates, Form2.Updates, Form3.Updates).
And i am navigating to next screen where i use form viewer
Here i want to display the last submitted forms value.
How can i do this??
I am trying to view the ID in a new form after been submitted and the screen goes blank and saus "No data to display". Any suggestions for this mater?
Hi @alex3
If you are using "SubmitForm(FormName)" to submit your data, use "FormName.LastSubmit.ID" to fetch the id and give to the form viewer on next screen.
I have the same issue. I tried the following, where TargetRequest is the Item property of my DisplayForm in the OnSuccess event of the EditForm
If( EditForm1.Mode = FormMode.New, Navigate(DetailScreen1,Fade,{TargetRequest: EditForm1.LastSubmit}), Back())
If I was in Edit Mode, it will go back to the detail screen from where I invoked Edit Mode.
But if I was in New Mode, it as well goes back to the Gallery from where I invoked the Add new item.
Why would it ignore the Navigate function?
User | Count |
---|---|
142 | |
137 | |
78 | |
73 | |
70 |
User | Count |
---|---|
228 | |
139 | |
79 | |
61 | |
57 |