My Products
Help
Stefan Hult
PARTNER

Employee attributes

by Stefan Hult (Updated ‎19-04-2021 16:04 by Yıldırım VISMA )
Status: New

Currently, Employee Endpoint is missing the function to POST  & PUT and GET attributes from employee. We also need to be able to filter the GET request based on Employee "Attributes" values.

1 Comment
Yıldırım
VISMA
by Yıldırım (Updated ‎19-04-2021 16:01 by Yıldırım VISMA )

1) Expose "Attributes" Tab via Employee Endpoint (Read&Write)
Employee_Attributes.png

2)Expose "Attributes" as a filtering parameter via GET Employee Endpoint 

e.g. Inventory & Supplier & Customer Endpoints. 
Syntax:

  • {{base}}/inventory?attributes={"MULTIPLE":"Summer,Winter","ACTIVE":"1"} - Filtering on several attributes.
  • {{base}}/inventory?attributes={"DATETIME":"2019-04-19"} - Filtering on date time
  • {{base}}/inventory?attributes={"TEXT":"long text to filter upon"} - Filtering on text. It will not match partial strings. only exact string.
  • {{base}}/inventory?attributes={"ACTIVE":"1"} - Filtering on True/False

In general:

  • {{base}}/inventory?attributes={"AttributeID":"ValueID","AttributeID":"ValueID"}


With special case for Multiple selection combo:

  • {{base}}/inventory?attributes={"AttributeID":"ValueID1,ValueID2"}


In case of
multiple value usage "OR" Logical Parameter is not supported, The operands works based on AND logical operator.

Meaning, if there are 3 multiple attribute value holder items exist such as

 

#

ITEM ID

Attribute

Value

1

Item 1

MULTIPLE

"a1,b1,c1"

2

Item 2

MULTIPLE

"a1,b1"

3

Item 3

MULTIPLE

"a1"

 

Filter: attributes={"MULTIPLE":"a1,b1,c1"}

 

Returns only #1st Record

MULTIPLE

"a1,b1,c1"