Skip to content

Multiple select field does not exists - getOverview with getOverviewFields #11

@ricklambrechts

Description

@ricklambrechts

When using getOverview with the fields of getOverviewField. getOverview returns errors sayings 10 of the fields are not existing.

$fieldNames = [];

$fields = $client->getOverviewFields('PRODUCT');
foreach ($fields->overviewFieldsList as $field) {
	$fieldNames[] = $field->name;
}

$overview = $client->getOverview('PRODUCT', 0, $fieldNames);

Result:

{#2542 ▼
  +"currentPageNumber": 0
  +"lastPageNumber": 0
  +"maxPerPage": 0
  +"totalRecords": 0
  +"overviewList": []
  +"result": "GET-OVERVIEW-RESULT-FAILED"
  +"errorList": array:10 [▼
    0 => {#2544 ▼
      +"field": "voorraad_huidig_filiaal"
      +"errorCode": "GET-OVERVIEW-ERROR-INVALID-SELECT-FIELD"
      +"errorMessage": "Select field does not exists."
    }
    1 => {#2545 ▼
      +"field": "fil_maxvrd_1"
      +"errorCode": "GET-OVERVIEW-ERROR-INVALID-SELECT-FIELD"
      +"errorMessage": "Select field does not exists."
    }
    2 => {#2546 ▼
      +"field": "vrijevrd_huidig_filiaal"
      +"errorCode": "GET-OVERVIEW-ERROR-INVALID-SELECT-FIELD"
      +"errorMessage": "Select field does not exists."
    }
    3 => {#2547 ▼
      +"field": "inorder_huidig_filiaal"
      +"errorCode": "GET-OVERVIEW-ERROR-INVALID-SELECT-FIELD"
      +"errorMessage": "Select field does not exists."
    }
    4 => {#2548 ▶}
    5 => {#2549 ▶}
    6 => {#2550 ▶}
    7 => {#2551 ▶}
    8 => {#2552 ▶}
    9 => {#2553 ▶}
  ]
}

All the fields:

  • voorraad_huidig_filiaal
  • fil_maxvrd_1
  • vrijevrd_huidig_filiaal
  • inorder_huidig_filiaal
  • inifopdr_huidig_filiaal
  • filiaal_brutoprijs
  • filiaal_verkoopprijs
  • fil_vrd_1
  • fil_minvrd_1
  • inbestel_huidig_filiaal

I think that is because there is no 'filiaal' selected or something but then someone needs te exclude fields from the list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions