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

Saving the contact using connect PHP fails

Received Response
10
Views
5
Comments
edited Aug 7, 2017 2:49PM in Integrations and APIs 5 comments

Content

Hey, 

I want to insert the current date stamp into the contact object using the CPM we have running everytime the incidents rules are running.

This is the function that should insert the value:

public static function runTime()
    {
        
                    $contact->CustomFields->c->brm_account_manager=date("Y-m-d H:i:s");
                     //the row below causes the error
                    $contact->save(RNCPHP\RNObject::SuppressExternalEvents);
 
                    
            
        //$contact->CustomFields->c->brm_account_manager=date("Y-m-d H:i:s");
        //$contact->save(RNCPHP\RNObject::SuppressExternalEvents);
        
        //$contact->save();
    }

This is the error I get when testing the code 

 

How can I save the contact after appending a value without this error?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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