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
Kemp100Kemp100 

Adding to custom object field

I am trying to add to custom object field, here is my code..its executing correctly but i dont see the output on the site.
 
 $lead_name="test one";
 $User_IP="1.1.1.1";
 $ipToAdd = array('Lead__c' => $lead_name, 'Users_IP__c' => $User_IP);
        $sIP= new SObject();
        $sIP->fields = $ipToAdd;
        $sIP->type = 'UserIP__c';
        $add = $mySforceConnection->create( array( $sIP ) );
whats wrong with that?