You need to sign in to do that
Don't have an account?
![Rahul Allada Rahul Allada](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
How to get Id of the created record when using .submit function
How do i get the record ID of the newly created record when i use
this.template.querySelector('lightning-record-edit-form').submit()
and store it in a variable?
this.template.querySelector('lightning-record-edit-form').submit()
and store it in a variable?
If you find this information helpful, please mark this answer as Best. It may help others in the community. Thank You!