-2

I have a custom form and multiple fields. Is it possible to add a custom fields when creating and submitting new case using REST api?

  • 2
    is your question can you populate the Case object custom fields with new values or do you want to dynamically create new custom fields not previously part of the Case object? – cropredy Aug 14 '14 at 16:18
0

The Force.com Tooling API Developer's Guide says you can add custom fields to custom objects.

If your calling code will Apex, the simplest solution would be to use Andrew Fawcett's Apex Wrapper for the Salesforce Metadata API. The documentation page has an example for adding a custom field.

You can use Workbench for testing your REST calls.

  • sorry I forgot to mention I want to use the salesforce REST api. – Peter Indiola Aug 14 '14 at 15:39
  • Are you asking how to add the fields to the custom form, or to the case object itself using REST? – SF1Dev Aug 14 '14 at 18:09
  • to the case object using REST – Peter Indiola Aug 15 '14 at 10:17

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.