loadUserFields needs to be a POST

Created on 20 September 2023, about 1 year ago
Updated 26 September 2023, about 1 year ago

Problem/Motivation

The loadUserFields returns FALSE because it needs to be a POST request and the payload is not formatted correctly.

Proposed resolution

Update to:

  public function loadUserFields() {
    $parameters = [
      'filters' => [
        "origin" => "USER",
        "type" => "ALL"
      ],
    ];

    // @todo add enum for origin query parameter
    $url = $this->clientContext->fieldHost . '/indexes/fields/search';
    return $this->doRequest($url, 'POST', $parameters, []);
  }
πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kevinquillen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024