function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anu35anu35 

How to get the case Type Field value in workbench response

Hello,

  Can anyone help me to get the case object Type field value in the Workbench POST method Responce.

User-added image
Thanks,
NagendraNagendra (Salesforce Developers) 
Hi Anu,

Sorry for this issue you are encountering.

Post method is used to create a record in your Salesforce database.As per the screenshot if you give the body as above then it will create a new record in your Salesforce database and will return the case record ID if the record is inserted successfully.

If you want to get the value of the type field or any other field then you have to use the get method in Workbench.

Please find the query below :
/services/data/v41.0/query?q=SELECT Type FROM Case
Then you get the response of the respective field of all the fields from the case object as shown in the below screenshot.
User-added image

Hope this helps.

Kindly mark this as solved if my reply was helpful so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Thanks,
Nagendra