I have an application that is creating a Salesforce Case via the API (POST on /services/data/v48.0/sobjects/Case/). This application is expected to return the case number to the user. Therefore, the application does a GET with the Case ID returned from the POST to get the details.

Is there a way to instruct the POST request to return more fields other than the ID?

  • 1
    No - use the Composite resource
    – identigral
    Apr 28, 2022 at 16:16
  • You can also create a HttpResource
    – Yaac0
    Apr 28, 2022 at 21:57

1 Answer 1


Salesforce SOAP or REST api doesn't support the feature you are looking for. If this is must, you can build custom rest api in rest where you can query newly created case and return case number.

You must log in to answer this question.

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