We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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

CPM Error - Address Creation

Accepted answer
1
Views
8
Comments

Summary:

I'm trying to set "Country" value to the Contact Address Standard Field through CPM. But CPM throws an error.

Any idea will be helpful

Thanks,

Seethalakshmi S

Content (required):


Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

if($Mailbox== 1)

{

try

{

$contact->Address = new RNCPHP\Address();

$contact->Address->Country->ID = RNCPHP\Country::fetch(9);

$contact->save();

}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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