When examining the novelty of a patent, it is based on the publication time of the article, not on the date of receipt.
Regarding the patent application number of the magazine you submitted, you can ask the agency for it as soon as possible, because all applications are electronic now, and the application documents are basically confirmed. The application number can be obtained within 1 day after submitting the application.