Jump to content


nurielmeni

Member Since 24 Feb 2013
Offline Last Active Jan 18 2015 09:48 PM
-----

Posts I've Made

In Topic: Upgrade 2.2.3 to 2.5.1

14 November 2013 - 02:13 PM

What about upgrading to 2.5.3?


In Topic: Zurmo 2.5 Bugs

06 November 2013 - 09:58 PM

Yes I did, however that one got handled I have changed the smtp server to another account and it worked, probably my ISP blocked my messages. Thanks anyway for the reply.

 

The other issue still exist where eMail box stuck with the spinner on other Language then english, I'v tested it with Hebrew and German same issue.

 

Thanks,

Meni


In Topic: Getting "FAILURE" when creating contacts using the API

20 October 2013 - 09:44 PM

I Got it working now: 

 

$primaryEmail['emailAddress']   = $email;
$primaryEmail['optOut']         = '0';
 
# Everybody Can Read type = 0
$readWriteModelPermissions['type'] = '1';
$state['id'] = '2';
$state['name'] = null;
$state['order'] = null;
 
# $data used to send the data to the API
$data['firstName']           = $firstName;
$data['lastName']            = $lastName;
$data['mobilePhone']         = $mobilePhone;
$data['primaryEmail']        = $primaryEmail;
$data['state'] = $state;
 
$data['explicitReadWriteModelPermissions'] = $readWriteModelPermissions;
 
 
Just changed the State['name'] and state['order'] to null 
 
:)

In Topic: Getting "FAILURE" when creating contacts using the API

20 October 2013 - 12:45 PM

I also got that Error. However by looking at what the error message is, i saw it expect a astate['name'] and state['order']. my data variable looks like taht:

 

$headers = array(
'Accept: application/json',
'ZURMO_SESSION_ID: ' . $authenticationData['sessionId'],
'ZURMO_TOKEN: ' . $authenticationData['token'],
'ZURMO_API_REQUEST_TYPE: REST',
);
 
 
            $primaryEmail['emailAddress']   = $email;
            $primaryEmail['optOut']         = '0';
$readWriteModelPermissions['type'] = '1';
$state['name'] = 'New';
$state['order'] = '0';
 
 
            $data['firstName']             = $firstName;
            $data['lastName']             = $lastName;
            $data['mobilePhone']        = $mobilePhone;
            $data['website']                = $link;
            $data['source']['value']       = 'Treadshow';
            $data['primaryEmail']        = $primaryEmail;
            $data['state'] = $state;
            
$data['explicitReadWriteModelPermissions'] = $readWriteModelPermissions; #Makes it readable to all
 
            
 
 
$response = createApiCall($GLOBALS['BASEURL'].'/index.php/leads/contact/api/create/', 'POST', $headers, array('data' => $data));
 
This made the call successful, however each time I run the function a new 'status' with the name 'New' is created and added to the picklist!!? 
 
any help?