Is it possible to create and update custom objects using rest? I seen different questions that suggest it isn't yet available without using a client or SOAP but I need to be able to access it through http calls alone. (I know I can probably do it for soap but I'm attempting to make it as least complicated for me as possible).

  • Are you trying to create records of custom objects or the definition of the custom object itself? The former is the REST API, the latter is the Metadata API. – David Reed Apr 5 '19 at 11:24
  • Both in a sense, although if I can create the objects within salesforce then use the api to add records then I can happliy do that but I have no idea how to create the objects within salesforce – Meerfall the dewott Apr 5 '19 at 12:06
  • 1
    @Meerfallthedewott As David mentioned, you will need to mix the approaches here. You will need to utilize Metadata API to create the definitions and utilize SOAP or REST to create the records within those objects. – Jayant Das Apr 5 '19 at 13:25
  • @JayantDas Is there anyway to create custom objects in Saleforce UI? – Meerfall the dewott Apr 5 '19 at 14:03
  • @Meerfallthedewott Yes absolutely. You can always create custom objects in Salesforce UI if you are admin/developer. This help documentation will be a good place to start with. – Jayant Das Apr 5 '19 at 14:20

Based on the discussions in the comments, you have two requests here:

  1. To create custom objects using API/UI
  2. To create records within those custom objects

You can achieve these using the different APIs available.

Metadata API is what you will need to create custom objects if you want to utilize an external client. You can also create custom objects from Salesforce UI.

For creating records within those custom objects, you will need to use either SOAP API or REST API.

The links in the answer should help you get started.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.