-
Notifications
You must be signed in to change notification settings - Fork 46
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
Custom Fields Don't Work... #21
Comments
Here's the exact error I'm getting back: Fatal error: Uncaught exception 'Exception' with message 'API for Person returned Status Code: 500 Expected Code: 201' It's showing the error is thrown in HighriseAPI.class.php on line 137. |
I am getting this issue as well. I have tried this two ways: $person->setCustomField( 'Date of Birth', date("m/d/Y", strtotime($_POST['date_of_birth'])) ); $person->setCustomField( 'Date of Birth', new HighriseSubjectData(null, $my_field_id, 'Date of Birth', date("m/d/Y", strtotime($_POST['date_of_birth'])) )); [edit] Appears that a lot of the custom data I'm entering is supposed to be in subject_data instead of contact_data. Unsure what the difference between these sets are. |
as per this discussion… |
You can do this with my Advance Highrise PHP API library. Link for download - https://github.com/ashokrd13/Advance-Highrise-PHP-Api Read file README.markdown for custom field code example |
I am trying to set a custom field using the following:
$person->setCustomField("Field Name", $value);
The issue is that this line causes Highrise to report back with error code 500. I'm not sure what the issue is, but nothing I do makes custom fields behave appropriately.
The text was updated successfully, but these errors were encountered: