-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update all values by email? #10
Comments
Hi @mcpacific, Yes it is possible with API, but need to careful while calling this API. Please follow the step mention below and condition - 1. Get Contact by email using below API https://github.com/agilecrm/php-api#12-to-fetch-contact-data $result = curl_wrap("contacts/search/email/[email protected]", null, "GET", "application/json"); 2. Use setter method to set lead score, star value, and contact properties : $contact ->lead_score="80"; $contact -> properties = array( $contact_json = json_encode($contact); $contactResult = curl_wrap("contacts", $contact_json, "PUT", "application/json"); print_r($contactResult ); 3. Please let us know in case need further information. Thanks |
This is great, and will speed up updates. I'll be sure to check fields to ensure no data is lost! Thank you!! |
Hi @graut and @mcpacific , with regard to Point #2 and #3, does that mean if my contact has many properties such as mailing address etc, I will have to include it in the setter method code, even if I'm not going to update those data? Thank you. :) |
Is it possible to update all values to an existing contact based on email address? I would like to update lead score, star value, tags and properties in a single command, if possible.
The text was updated successfully, but these errors were encountered: