Cannot mark email as read if the subject contains the character '

the activity get outlook mail messages throw error below if the subject of the email contains ’
Cannot parse condition. Error at …
i have use the filter below
“[Subject]=’”+ MailSubject+"’"
any idea how to get the email read correctly

@rchabbeh You need to double the single quote character.
For example if you have an email with subject abc’de, then your query should be “[Subject] = ‘abc’‘de’”

This is exemplified in the official documentation, the second query example in the table from here:

1 Like