Function Services
Request Body
JS
{
"name": "GetUDC",
"cantaraVersion": "5.1",
"tenantId": "",
"apiKey": "",
"parameter": [
{
"value": "",
"name": "dataDictionaryItem"
},
{
"value": "",
"name": "systemCode"
},
{
"value": "",
"name": "recordType"
},
{
"value": "",
"name": "key"
}
]
}
Request Body Parameters
Path | Description |
---|---|
name | Function service name |
cantaraVersion | Cantara platform version |
tenantId | Cantara Tenant ID (The Tenant ID and API Key can be retrieved from the customer portal.) |
apiKey | Cantara Tenant API Key (The Tenant ID and API Key can be retrieved from the customer portal.) |
Parameter | Function request parameters |
Response Body
JS
{
"Message": {
"value": "Transaction Successful",
"origin": "Worker7@5bbdad89215b",
"type": 0,
"sessionId": "",
"cantaraSid": ""
},
"name": "GetUDC",
"Parameter": [
{
"value": "",
"name": "dataDictionaryItem"
},
{
"value": "",
"name": "systemCode"
},
{
"value": "",
"name": "recordType"
},
{
"value": "",
"name": "key"
},
{
"value": "",
"name": "keyFieldLength"
},
{
"value": "",
"name": "languagePreference"
},
{
"value": "",
"name": "description1"
},
{
"value": "",
"name": "description2"
},
{
"value": "",
"name": "specialHandling"
},
{
"value": " ",
"name": "udcOwnershipFlag"
},
{
"value": "Y",
"name": "hardCoded"
}
],
"JdeError": []
}
Response Body Parameters
Path | Description |
---|---|
Message | Response message information |
Message.value | Message description |
Message.origin | origin host |
Message.type | Message type identifier |
Message.sessionId | JDE CallObject kernel thread |
Message.cantaraSid | Web application server session ID |
name | Function service name |
Parameter | Function response parameters |
JdeError | JDE error messages |
Execute Function
Example for executing Function service
Example Endpoint: https://us.cantara.cloud/cantara/service/50/function/E1DEV
Function Request
JS
{
"name": "GetUDC",
"cantaraVersion": "5.1",
"tenantId": "",
"apiKey": "",
"parameter": [
{
"value": "00",
"name": "systemCode"
},
{
"value": "ST",
"name": "recordType"
}
]
}
Function Response
JS
{
"Message": {
"value": "Transaction Successful",
"origin": "Worker7@5bbdad89215b",
"type": 0,
"sessionId": "5016.1572846537.1000",
"cantaraSid": "67200fb0-9e49-4987-b31d-79f69fcb60d0"
},
"name": "GetUDC",
"Parameter": [
{
"value": "",
"name": "dataDictionaryItem"
},
{
"value": "00",
"name": "systemCode"
},
{
"value": "ST",
"name": "recordType"
},
{
"value": "A",
"name": "key"
},
{
"value": "0",
"name": "keyFieldLength"
},
{
"value": " ",
"name": "languagePreference"
},
{
"value": "Address Book Number",
"name": "description1"
},
{
"value": "Hard Coded Edit in F0101",
"name": "description2"
},
{
"value": "",
"name": "specialHandling"
},
{
"value": " ",
"name": "udcOwnershipFlag"
},
{
"value": "Y",
"name": "hardCoded"
}
],
"JdeError": []
}