function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Evgenii GillEvgenii Gill 

I created a popup using Lightning, a table with fields is displayed in the window, HOW, when you click Save, a new record of the Product object will be created.

Best Answer chosen by Evgenii Gill
Deepali KulshresthaDeepali Kulshrestha
Hi Evgenii,
To create a new record in the object you can simply use the "lightning:recordForm".Please go through the following code snippet as it may help in solving your issue:
<lightning:recordForm objectApiName="Product2"
                          layoutType="Full"
                          columns="2"/>

For more information on "lightning"recordForm" please go through the following link:
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/data_service_create_record.htm

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha