CUSTOM_PICK_LIST_SORT_CONFIG
Changed on:
24 Jan 2024
Setting Area | UI component |
---|---|
Supported context levels: | RETAILER |
Overview
This setting can be used to sort the items on the picklist to optimise the pick run. The sorting criteria are defined in this setting. For example, a sports retailer might prefer the items to be categorised based on the following criteria: > Parent department: MEN > Child department: SHOES > Category: Sneakers This preference enables a retailer to sort by the parent department at level 1, by the child department at level 2 and at category level at 3. The sorting preference also helps the in-store staff to pick all items in the same area in one go instead of going from one area to the other after each item.
Values
Data Type | Values |
---|---|
JSON | { "sort": [ { "field":"sku.attributes.parentDepartment", "order": "DESC"}, { "field":"sku.attributes.subdepartment" }, { "field":"category", " |
Configuration example
1POST: {{fluentApiHost}}/graphql
2
3// create a postman environment variable:
4// Variable: json_value
5// initial val + current value:
6{
7 "sort": [
8 { "field":"sku.attributes.subDepartment", "type": "string", "order": "DESC" },
9 { "field":"sku.attributes.total", "type": "number" }
10 ]
11}
12
13
14GraphQL variables:
15{
16 "retailerId": {{retailer_id}},
17 "lobValue" : {{json_value}}
18}
19
20
21GraphQL Query:
22mutation CreateSetting($retailerId:Int! , $lobValue:Json) {
23createSetting(input: {
24 name: "CUSTOM_PICK_LIST_SORT_CONFIG",
25 valueType: "JSON",
26 lobValue:$lobValue ,
27 context: "RETAILER",
28 contextId:$retailerId}) {
29 id
30 name
31 }
32}
Language: json
Update example
1POST: {{fluentApiHost}}/graphql
2
3// create a postman environment variable:
4// Variable: json_value
5// initial val + current value:
6{
7 "sort": [
8 { "field":"sku.attributes.subDepartment", "type": "string", "order": "DESC" },
9 { "field":"sku.attributes.total", "type": "number" }
10 ]
11}
12
13
14GraphQL variables:
15{
16 "retailerId": {{retailer_id}},
17 "lobValue" : {{json_value}}
18}
19
20
21mutation updateSetting($retailerId:Int! , $lobValue:Json) {
22updateSetting(input: {
23 id: 5001471,
24 name: "CUSTOM_PICK_LIST_SORT_CONFIG",
25 valueType: "JSON",
26 lobValue: $lobValue,
27 context: "RETAILER",
28 contextId: $retailerId}) {
29 id
30 name
31 }
32}
33
34
Language: json