to get a personalized navigation.
to get a personalized navigation.
Currently, the "Attributes" parameter is exposed on the following endpoints.
Endpoint |
Customer |
CustomerContract |
Inventory |
Project |
Supplier |
Setting the attributes for other assets works in the same way as for e.g. customer.
To set Attributes on Customers and Inventory Items you first need to
1. Creating the attributes:
You can do this in the Attributes screen(ScreenId=CS205000):
2. Assigning the attributes to the class:
Here you then add attributes based on the attributes you have created in the attributes screen.
Same as for customer, you can add attributes here based on the attributes you have created in the Attributes screen.
3/4. Setting the attributes and their values
When this has been done, you can under the Attributes tab add the attributes from the classes the Customer/Inventory belongs to and set their values:
Using the attribute parameter via the API
To use these attributes, below is the syntax to use in your query:
{{base}}/inventory?attributes={"AttributeID1":"ValueID1","AttributeID2":"ValueID2"}
{{base}}/inventory?attributes={"DATETIME":"2019-04-19"}
{{base}}/inventory?attributes={"TEXT":"long text to filter upon"}
{{base}}/inventory?attributes={"ACTIVE":"1"}
{{base}}/inventory?attributes={"AttributeID":"ValueID1,ValueID2"}
When encoding your query, the "equal sign" should not be encoded, below is an example for the customer endpoint and accepted forms of encoding it:
Customer Endpoint:
GET {baseUrl}customer?attributes={"DATETEST":"2019-01-01","TEST":"testvalue"}
Encoded: (both encoding examples below are accepted)
Inventory Endpoint
Inventory?attributes={"TEST":"testvalue"}
Encoded: (both encoding examples below are accepted)
Copyright © 2022 Visma.com. All rights reserved.