Calculate network
General
This page contains the JSON of the function-set applicable on the Calculate network function, used to split an order across a milk run/route network.
Note
Add this function to a status template step of the order after the initial section(s) have been created by the Update section function, for example on the release step.
Json code snippet: CALCULATE NETWORK
{
"FunctionSet": {
"TableNo": 11172786,
"DataType": "31488",
"Entries": [
{
"EntryNo": "10000",
"CodeunitID": "71539690",
"FunctionCode": "CALCULATE NETWORK",
"Parameters": [
{
"ParameterName": "DEFAULT ADDRESS",
"Value": ""
},
{
"ParameterName": "FROM ROUTE CHECK",
"Value": "true"
},
{
"ParameterName": "TO ROUTE CHECK",
"Value": "true"
},
{
"ParameterName": "FROM ADDR FIRST MILE",
"Value": ""
},
{
"ParameterName": "TO ADDRESS LAST MILE",
"Value": ""
},
{
"ParameterName": "IF EXECUTED",
"Value": "EXIT"
}
]
}
]
}
}
Parameters
| Parameter | Description |
|---|---|
| DEFAULT ADDRESS | Optional default via address to always split the order on, before the from/to route checks are applied. |
| FROM ROUTE CHECK | When set to true, checks whether the from address of the first leg is part of a milk run/route and, if so, splits that leg according to the linked Section Configuration. |
| TO ROUTE CHECK | When set to true, checks whether the to address of the last leg is part of a milk run/route and, if so, splits that leg according to the linked Section Configuration. |
| FROM ADDR FIRST MILE | Optional address that overrides the from address of the very first leg (first mile) after the network has been calculated. Leave empty to keep the calculated address. |
| TO ADDRESS LAST MILE | Optional address that overrides the to address of the very last leg (last mile) after the network has been calculated. Leave empty to keep the calculated address. |
| IF EXECUTED | Controls what happens if the network was already calculated for the order: EXIT does nothing, ERROR stops with an error, MESSAGE shows a message. |