This notification is sent when an order is created and submitted to the order management system. The order management system might send the Order In Progress notification message when processing the order. It can also send the fields container in the notification message, which contains any data that must be updated in the order record.
[
{
"orderId": "8021U000000hv6T",
"state": "In Progress",
"PONR": true,
"fields": {
"meta": {
"updateMethod": "directfieldupdate"
},
"vlocity_cmt__JeopardyStatus__c": "Green"
}
}
]
Sample Apex code for invoking the Order In Progress notification:
Map<String, Object> orderInputMap = (Map<String, Object>) JSON.deserializeUntyped('{"orderId": "8013i000000qvWhAAI","state": "Rejected","fields": {"JeopardyStatus__c": "Green"}}');
OdinService.notify(new List<Object> { orderInputMap });