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

Create Case using Webservice

Iam trying to create a case on the standard case object using webservice call, Iam unable to commit the case to DB , so when i run the test class i see a random case num generated( its a simulation & it would not be found in the UI) but the actual cases,they are not getting commited to db is there any way that this can be done




When you run the test methods the data will be inserted and then immediately roll backed... what I meant to say it from the test classes or test methods whatever data you inserted will not be inserted into DB... so you will not be able to find any of these records in your DB.



If you are not able to save the record by invoking webservice, then you can use the debug logs to find out whats going wrong in your code