Hi All,
I am getting error GetMail:BadRequest error while reading emails with specific subject using office 365.
Please help me on this.
Hi All,
I am getting error GetMail:BadRequest error while reading emails with specific subject using office 365.
Please help me on this.
use below activity
note: outlook must be installed on your system.
It is working fine with Get Outlook Mail Message activity but I need to read emails with office 365 get Mail activity.
Hey @Poonam_Yadav
Most probably the error is due to any of invalid props may be the filter option.
So if you can show us that will be helpful to troubleshoot!
Thanks
#nK
Hello @Poonam_Yadav ,
Please refer the below document. Cross check whether you have done all these settings.
Without these configurations Office365 will not work. This is same like how you can use the Google Workspace activities.
Hey @Poonam_Yadav
Kindly remove the query and run once (this is just to confirm the issue)
After that please paste the filter query here to check.
Thanks
#nK
Perfect @Poonam_Yadav
It’s clarified that issue is due to the filter query.
Try this once,
"$filter=subject eq 'test'"
Thanks
#nK
I again got the BadRequest error with “$filter = Subject eq ‘test’” query.
Yes.
“$filter = subject eq ‘test’”
Without filter as well ?
And also removing spaces between filter and equals symbol !
without filter no error
yes removed spaces between filter and equals symbol.
Hey @Poonam_Yadav
No, I mean without filter keyword.
Try the below please,
"$filter=subject eq 'test'"
"subject eq 'test'"
Thanks
#nK
Hi, @Poonam_Yadav
Try this on:
“subject eq ‘test’”
“Contains(Subject, ‘test’)”
Thanks all
It’s working fine now.
Hey @Poonam_Yadav
What made it work please ?
It will be better if you can share it for our understanding.
Thanks
#nK