Supply Chain Cloud functionality includes the ability to modify carrier notifications.
Important
If you previously had a modification to enable notifications, and you download connector version 2021.10.24.0 or newer, you must modify your code to continue using the Notification Deliver logic.
Notification Types
The SCC connector supports carrier notifications.
You can modify this feature to add notification types:
- Deliver: Send an email notification when the shipment is delivered.
- Exception: Send an email when an unforeseen event changes the shipment's expected delivery date (e.g. address unknown, damage to shipment, signature not received).
- Ship: Send an email notification when the shipment is processed and you have a tracking number.
Code Configuration
You can modify the code to inject a notification node in the Ship request. The code will recognize all three types listed above.
- Extend writeShipShipment from the appropriate TMSProcessXML class.
- Add the notifications node using the example below as a guide.
Code example:
Here is an example of the Ship request generated from the above modification:
<Notifications> <Notification> <Type>NotificationException</Type> <EmailAddress1>abc@bhsolutions.com</EmailAddress1> </Notification> <Notification> <Type>NotificationShip</Type> <EmailAddress1>abc@bhsolutions.com</EmailAddress1> </Notification> </Notifications>