Hi
I am trying to get emails using the Get Outlook Messages using a filter.
Using Windows Legacy. Running 2023.10.7
When in test environment the email can be found but when in our live environment keep getting this message in Orchestrator logs, Get Outlook Mail Messages: Cannot parse condition. Error at “@SQL=urn:schemas:httpmail:subject LIKE’%…”.
Any thoughts?
Thanks
Sum
Hi both,
I’ve tried both of these methods above, thanks. It’s very peculiar as able to grab an email elsewhere outside of the production environment.
Previously the logs showed like this Get Outlook Mail Messages: Cannot parse condition. Error at “@SQL=((”“urn:schemas:httpmail:subject”" …". when I used the double quotes.
Would prefer to use this as a config item so don’t have to amend in the build. @SQL=urn:schemas:mailheader:subject LIKE ‘%+in_strTradingAs+%’ is what has been working in my test environment
Any other thoughts?
Can you try like below
"@SQL=""urn:schemas:httpmail:subject"" like '%" & Filter & "%'"
Regards,
Afraid this also doesn’t work.
Any way I can filter without @SQL?
In my case it is working.Can you show the screenshot how you are trying
Can you try this
[Subject] = 'Product Roadmap
Regards,
Try this
FilteredMails = RetrievedMails.Where(Function(mail) mail.Subject.Contains(Filter)).ToList()
Regards,
Will give this a try - thanks
If you got the solution for your question.Please mark it as solution to close the thread.So it will be helpful for others.
Regards,
Thanks all for your input.
I’ve had to do a different method.
mailMessages
(List of MailMessage): The list of emails retrieved.filteredEmails
(List of MailMessage): The list to store filtered emails.- filteredEmails = New List(Of MailMessage)
- If activity to subject.contains or body.contains
- in THEN branch - For Each
- Invoke Method
-
TargetObject
: filteredEmails`
MethodName
:Add
- Parameters:
item
- TESTED * - and working
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.