3

I'm a .Net developer. Just started learning Salesforce. I would like to setup a dev environment using Visual Studio Code. I'm able to do that with the help of Salesforce Extension Pack.

However I'm looking for a way to create SObjects right from the Visual Studio Code. Is there a plugin or a command that I can use to create sfdx objects in vscode??

1 Answer 1

2

Creating Custom Objects in Salesforce via VS Code can be cumbersome, as it involves adding/manipulating metadata files that aren't so friendly to use.

I would suggest using getting familiar with the Setup -> Object Manager for full control of SObject/field creation, or use Schema Builder (which is really useful for quickly creating SObjects & fields)

P.S. There's a nice tutorial for .NET developers coming onto Salesforce on the .NET Developers Trailhead

3
  • Thanks, Once created is there an option to export them as an .object file or something, since i would need to check in the schema to the source control Jul 17, 2019 at 9:13
  • Yes, you can do it via the Salesforce CLI with commands like sfdx force:source:retrieve -m CustomObject:MyCustomObject__c -u OrgWhereMyCustomObjectLives. Read up on Develop Against Any Org for examples of force:source, and -m flag maps to Metadata Types. Scroll and click through the laundry list of Metadata types on the left sidebar Jul 17, 2019 at 9:18
  • Sure Let me try this. Thanks for the help!! Jul 17, 2019 at 9:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .