Getting error on office365 Get Mail activity

Hi All,

I am getting error GetMail:BadRequest error while reading emails with specific subject using office 365.

Please help me on this.

1 Like

Hey @Poonam_Yadav

Could you please show us the prop values?

Thanks
#nK

use below activity
note: outlook must be installed on your system.

image

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

kindly do it like this


below i think only work with intergration.

1 Like

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

Error not coming after removing the query.


I am getting Mail Count 50

Query was “Subject eq ‘test’”

1 Like

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.

1 Like

Hey @Poonam_Yadav

I hope you are using smaller case letters?

Thanks
#nK

Yes.
“$filter = subject eq ‘test’”

1 Like

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.

1 Like

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’)”

1 Like

Thanks all :slightly_smiling_face:
It’s working fine now.

1 Like

Hey @Poonam_Yadav

What made it work please ?

It will be better if you can share it for our understanding.

Thanks
#nK