Skip to content
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

Open
MysticalMatt517 opened this issue Jan 23, 2014 · 4 comments
Open

Custom Fields Don't Work... #21

MysticalMatt517 opened this issue Jan 23, 2014 · 4 comments

Comments

@MysticalMatt517
Copy link

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.

@MysticalMatt517
Copy link
Author

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.

@EricWVGG
Copy link

EricWVGG commented Mar 8, 2014

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.

@EricWVGG
Copy link

EricWVGG commented Mar 8, 2014

as per this discussion…
http://stackoverflow.com/questions/21301903/highrise-api-returning-error-code-500
his solution works.

@ashokrd13
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants