You need to sign in to do that
Don't have an account?
Felix Jong Seok Chae
URI for Inserting a new case via REST
I have a REST API in Java that tries to insert a new case record in SF.
HttpPost constructor takes URI string, which is formatted as baseUri + "/sobjects/case/".
I keep getting the message saying that insertion was unsuccessful.
How can I find the correct URI to insert a new case record?
HttpPost constructor takes URI string, which is formatted as baseUri + "/sobjects/case/".
I keep getting the message saying that insertion was unsuccessful.
How can I find the correct URI to insert a new case record?
Can you please share the error ? You are doing correctly.
_______________ INSERT _______________
JSON for case record to be inserted:
{"Description": "a new description was made for a new case."}
Insertion unsuccessful. Status code returned is 404
Process finished with exit code 0
Thank you.
Is your authentication was successful? can you please let me know
yes it was successful.
HTTP/1.1 200 OK
Successful login
instance URL: https://cs9.salesforce.com
access token/session ID: deleted
baseUri: https://cs9.salesforce.com/services/data/v32.0
_______________ Case INSERT _______________
JSON for lead record to be inserted:
{
"Status": "New",
"Origin": "Web",
"Description": "Hello world"
}
Insertion unsuccessful. Status code returned is 400
Process finished with exit code 0
*** Screenshot of debug
http://www.asagarwal.com/2401/step-by-step-guide-to-get-started-with-salesforce-rest-api-using-java
I changed a callback url to the one that appeared right after my login to sandbox and waited more than 10 minutes to be effective but still give me the same error message.