Perform an Sobject Describe From A Snippet

Has anyone ever performed an describe call for Salesforce from a Javascript Snippet? I am basically looking to be able to display all fields to a user in a picklist. The issue I have is they are allowed to select the object first. 

Any help would be greatly appreciated!


After a quick look around, I didn’t immediately see a method to describe a model.  You may want to look into incorporating JSForce (link: ) to assist in accessing the Salesforce Metadata API.  Salesforce also has a walkthrough that may be beneficial:…

Thanks Adam! I ended up using JSForce. It accomplished my need and a bit of work and got what I was trying to do accomplished.