I created a stdclass() object to upsert into Salesforce. I can upsert other custom objects in this way, but there is one that I can't get to work. Here is the error message that I get
**** Creating the following: stdClass Object ( [created] => 1 [errors] => Array (  => stdClass Object ( [message] => dealer.ServiceAppointmentControl: execution of BeforeInsert caused by: System.NullPointerException: Attempt to de-reference a null object (dealer) [statusCode] => CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY ) ) [id] => [success] => )
I think (from searching online) that there is a Trigger happening, trying to reference a field that is null in the custom object. What I am searching for is a way to determine which of the fields is requied WITHOUT having to open each one up and look for the required box. I called describeSObject(mycustomobject) and while it did return all of the fields, it did not display whether or not the fields were required. There are like 50 fields and I feel like there must be an easier way.
Thank you for your help and time!