You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Connect web services not updating empty values

Received Response
4
Views
9
Comments
edited Sep 27, 2016 11:41PM in Integrations and APIs 9 comments

Content

Hi,

We are using Connect web services to update data from Customer portal or ORN. If the user deletes a values and submits a page. Connect web services do not update that field to null in ORN. So the enxt time user logs in, he will see the old value.

The update work fine if the value of text field is changed.

 

Eg

$partner->Emails [0]->Address = $partner_data ["email"];

updates value if emailis not an empty string

 

Thanks

Version

Nov 2015

Code Snippet

             
	function updateMemberDetails($data) {
		$this->CI = &get_instance ();
		$profileid = $this->CI->session->getProfileData ( 'contactID' );
		
		if ($profileid != null) {
$partner->Emails = new RNCPHP\EmailArray ();
					$partner->Emails [0] = new RNCPHP\Email ();
					$partner->Emails [0]->AddressType = new RNCPHP\NamedIDOptList ();
					$partner->Emails [0]->AddressType->LookupName = "Email - Primary";
					$partner->Emails [0]->Address = $partner_data ["email"
} 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!