Bug? 0 maxLength for countryCode and countryName on meta/Candidate - 02281005

Forum for users and developers of Bullhorn's API service.

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
max_max_mir
User
Posts: 77
Joined: Tue Jun 22, 2010 4:25 pm

Bug? 0 maxLength for countryCode and countryName on meta/Candidate - 02281005

Post by max_max_mir » Sat Jul 02, 2016 12:04 am

The maxLength for countryCode and countryName is 0 for the metadata on Candidate.Address. Is there a reason for this, or is this a bug?

Code: Select all

{u'dataType': u'String',
                           u'maxLength': 0,
                           u'name': u'countryCode',
                           u'type': u'SCALAR'},
                          {u'dataType': u'String',
                           u'maxLength': 0,
                           u'name': u'countryName',
                           u'type': u'SCALAR'}],
- Y

s.hayes
User
Posts: 12
Joined: Wed Dec 31, 1969 8:00 pm

Re: Bug? 0 maxLength for countryCode and countryName on meta/Candidate

Post by s.hayes » Tue Jul 05, 2016 10:34 am

Hello,
These fields are meant to return that way when searching meta because they are read only and cannot be modified via the API. This is why the maxLength returns as 0.
Sean Hayes | Enterprise Support Analyst

max_max_mir
User
Posts: 77
Joined: Tue Jun 22, 2010 4:25 pm

Re: Bug? 0 maxLength for countryCode and countryName on meta/Candidate - 02281005

Post by max_max_mir » Wed Jul 06, 2016 4:41 pm

Thanks for the clarification Sean. I am not sure how anyone would infer that a 0 length field means that it is not editable - unless this is standard JSON format (I haven't read about it, but I could be wrong)? I think a better way to deal with this is to actually have the length of the field be what it returns and have a separate field about it being editable or not. Just a thought.
- Y

Post Reply