This topic contains 1 reply, has 0 voices, and was last updated by Patient 8 years, 11 months ago.

  • Author
    Posts
  • #6807

    Patient

    Hi,

    I’m sure this will have been asked and answered before but I’ve searched the forum and can’t find it.

    I’m using the php toolkit: “PHPToolkit_2015_1”.

    I’m running a search that returns a list of customers that includes a custom field of the type multiselect (SearchColumnSelectCustomField). An example return for this custom field is: โ€‹{“name”:null,”internalId”:27,”externalId”:null,”t ypeId”:423} where the internalId varies by customer.

    I need to get the name of this field for each customer.

    I guess there may be two ways:

    1) I assume there is a way to get all the possible values (select options) of this field using either the typeId or the custom field name. If so could someone please tell me how or point me to where I can find it.

    2) It may be possible to get the name during the customer search. If so could someone please let me know how.

    Thanks for your help.
    This is a cached copy. Click here to see the original post.

  • #6808

    Patient

    As expected pretty straightforward. In case it helps someone else:

    $search = new CustomRecordSearch();

    $search->basic = new CustomRecordSearchBasic();

    $search->basic->recType = new RecordRef();

    $search->basic->recType->internalId = $params->internalId;

    $request = new SearchRequest();

    $request->searchRecord = $search;

You must be logged in to reply to this topic.