we are able to complete a request with POST a body, custom, set to Hard Coded values of
Code: Select all
{
"ExternalConsignment": {
"ConsignmentNo": "34CAW2079918",
"ConsignmentTrackingCode": "34CAW2079918",
"ConsignmentTrackingURL": "https://auspost.com.au/mypost/track/#/search",
"ExternalConsignmentDeliveries": [
{
"DeliveryKey": "584659",
"DeliveryTrackingCode": "34CAW2079918",
"DeliveryTrackingURL": "https://auspost.com.au/mypost/track/#/search"
}
]
}
}
Code: Select all
{
"ExternalConsignment": {
"ConsignmentNo": "[Job.PrivateData:Key="Consignment"]",
"ConsignmentTrackingCode": "[Job.PrivateData:Key="Consignment"]",
"ConsignmentTrackingURL": "[Job.PrivateData:Key="URL"]",
"ExternalConsignmentDeliveries": [
{
"DeliveryKey": "[Job.PrivateData:Key="FDKey"]",
"DeliveryTrackingCode": "[Job.PrivateData:Key="Consignment"]",
"DeliveryTrackingURL": "[Job.PrivateData:Key="URL"]"
}
]
}
}
Other settings are
URL: the URL we need to use and this is the same whether we test with hardcoded or switch variables so should not be a factor
Request Type: POST a body
Body content: Custom
Custom body: as shown in the code snips above
Authentication scheme: None
Parameters:
Headers:
Response: Attach as dataset
Dataset name: HTTPResponse
Dataset model: Automatic
Response headers: Discard
Retry after failed connection: No
Ignore server certificate errors: No