Set Default Party Value - Code: SET DFLT PARTY VALUE
General
This page contains the JSON of the function-set Code:
This function can be applied in the Status Template of the TMS-Order. This function will fill the Fact Box: Parties with contact information like names, phone-numbers and e-mail addresses on the following lines:
- Contact: The name, phonenumber and e-mail address from the Contact of the type Company linked to the Customer as set on the Order.
- Loading: The name, phonenumber and e-mail address from the From Address as set on the Order.
- POD: The name, phonenumber and e-mail address from the Contact linked to the Customer where the Number starts with "POD-" and is followed by the CustomerNo.
- Unloading The name, phonenumber and e-mail address from the To Address as set on the Order.
Tip
For the name, phonenumber and e-mail address see the tab: Communication on either: Contact or Address
Json code snippet: Set Default Party Value
{
"FunctionSet": {
"TableNo": 11172786,
"DataType": "34047",
"Entries": [
{
"EntryNo": "10000",
"CodeunitID": "11154852",
"FunctionCode": "SET DFLT PARTY VALUE",
"Description": "Set Default Party Value Loading",
"Parameters": [
{
"ParameterName": "PARTYTYPECODE",
"Value": "LOADING"
},
{
"ParameterName": "PARTYTYPEVALUE",
"ResultFunctionSetID": {
"FunctionSet": {
"TableNo": 11172786,
"DataType": "31488",
"Entries": [
{
"EntryNo": "10000",
"CodeunitID": "11172846",
"FunctionCode": "FIELD",
"Parameters": [
{
"ParameterName": "FIELDNO",
"Value": "20"
}
]
}
]
}
}
}
]
},
{
"EntryNo": "20000",
"CodeunitID": "11154852",
"FunctionCode": "SET DFLT PARTY VALUE",
"Description": "Set Default Party Value Unloading",
"Parameters": [
{
"ParameterName": "PARTYTYPECODE",
"Value": "UNLOADING"
},
{
"ParameterName": "PARTYTYPEVALUE",
"ResultFunctionSetID": {
"FunctionSet": {
"TableNo": 11172786,
"DataType": "31488",
"Entries": [
{
"EntryNo": "10000",
"CodeunitID": "11172846",
"FunctionCode": "FIELD",
"Parameters": [
{
"ParameterName": "FIELDNO",
"Value": "31"
}
]
}
]
}
}
}
]
},
{
"EntryNo": "30000",
"CodeunitID": "11154852",
"FunctionCode": "SET DFLT PARTY VALUE",
"Description": "Set Default Party Value Contact",
"Parameters": [
{
"ParameterName": "PARTYTYPECODE",
"Value": "CONTACT"
},
{
"ParameterName": "PARTYTYPEVALUE",
"ResultFunctionSetID": {
"FunctionSet": {
"TableNo": 11172786,
"DataType": "31488",
"Entries": [
{
"EntryNo": "10000",
"CodeunitID": "11172846",
"FunctionCode": "FIELD",
"Parameters": [
{
"ParameterName": "FIELDNO",
"Value": "12"
}
]
}
]
}
}
}
]
},
{
"EntryNo": "40000",
"CodeunitID": "11154852",
"FunctionCode": "SET DFLT PARTY VALUE",
"Description": "Set Default Party Value POD",
"Parameters": [
{
"ParameterName": "PARTYTYPECODE",
"Value": "POD"
},
{
"ParameterName": "PARTYTYPEVALUE",
"Value": "POD",
"ResultFunctionSetID": {
"FunctionSet": {
"TableNo": 11172786,
"Entries": [
{
"EntryNo": "10000",
"Description": "POD-"
},
{
"EntryNo": "20000",
"CodeunitID": "11172846",
"FunctionCode": "FIELD",
"DataType": "31488",
"Parameters": [
{
"ParameterName": "FIELDNO",
"Value": "10"
}
]
}
]
}
}
}
]
}
]
}
}