anthonyreilly / NetCoreForce

Salesforce REST API toolkit for .NET Standard and .NET Core
MIT License
111 stars 63 forks source link

Add Response value to Insert or Update request #5

Closed Nytrm closed 5 years ago

Nytrm commented 5 years ago

HTTP status code 201 is returned if a record is created with default CreateResponse JSON output. HTTP status code 204 is returned if an existing record is updated and has not JSON response output.

Using the CreateResponse object we know if an object was created or if it has been updated using the external id.

Nytrm commented 5 years ago

@anthonyreilly Let me know if you think this is too simple and we need a better way to handle the specific status codes, this works for me as it now gives an indication if it was created or updated.

anthonyreilly commented 5 years ago

Looks good to me, sorry for the delay. I'll get this in.