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
Dippan PatelDippan Patel 

Dynamic Lightning Component for any Custom Object in Org

Hi All, 

I want to create a lightning component that should be used for any custom object for creating records of that objects. 

So that lightning component should automatically grab the custom object name when user selects the object from the list of available object, component should be automatically created. then when user clicks on new button, it should get the pagelayout and field information based on user profile and user should be able to create a record using that. 

Is there any possible way for this and if yes, what are the alternatives? 

Thank you,
ANUTEJANUTEJ (Salesforce Developers) 
Hi Dippan,


I found this example that could be of help in implementing your custom use case, can you try checking it once?

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.