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
Firaus OdehFiraus Odeh 

C# Case updates

I need help getting this to work. I've followed all API documentation and can't get anything to happen. There are no errors, just nothing happens when it's run:

 Case c = new Case();
 Case[] cases = new Case[1];

c.Id = id;
c.Subject = "Test";
cases[0] = c;
SaveResult[] check = binding.update(cases);

Any ideas would be great. I can successfully login and pull data, but update() and create() do nothing.
Khan AnasKhan Anas (Salesforce Developers) 
Hi Firaus,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

http://www.ashishblog.com/integrating-salesforce-soap-api-using-c-net/

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_create.htm

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_update.htm

https://stackoverflow.com/questions/31079195/adding-a-new-case-comment-via-salesforce-api-c-sharp

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Firaus OdehFiraus Odeh
This helped a lot. I figured out case updates, thank you. 

But i had another question if you could help. Is there any documentation on how to create a case? That's the next thing i need to do and i can't find examples of using create() on a case. I don't know which fields are required and if there are any other calls to make.
Firaus OdehFiraus Odeh
Never mind, all good here. There was an issue with an outdated WSDL that only partially worked? Still unsure why but all function is here now.