Office365 Get Mail: The ContentID cannot contain a '<' or '>' character

How to solve error "The ContentID cannot contain a '' character" while getting mail via Office365 Get Mail?

Issue description

Office365 Get Mail returns the error "The ContentID cannot contain a '<' or '>' character."

Resolution

The Get Mail activity failed to retrieve emails due to incorrect metadata associated with attachment contents, such as invalid characters.

The issue was solved in v2.7.23, released on the 31st of October 2024 (see the Release Notes).