For cargo routing CDG-YUL-YEG, when must the eHBL filing be completed? How early can it be completed?

For cargo routing CDG-YUL-YEG, when must the eHBL filing be completed? How early can it be completed?

eHBL data and the Close Message in the air mode must be filed, in this example, four (4) hours prior to arrival at the first Canadian airport, Montreal. (The First Port of Arrival).  Both messages can be filed up to 90 days in advance of CACM / WACM Arrival at YUL.