Hi I'm trying to use the graph API to get the email form the outlook using the subject filter. The subject filter is having an "#" (hashtag) in it eg. "[CMS Case ID: #1040] Case Created Successfully". but the graph API is showing error for "#" like Invalid filter clause: There is an unterminated string literal at position 25 in 'subject eq '[CMS Case ID:'. Please help me with this issue how can i use the "#" in subject filter.
Thanks regards,
Yugesraj
Hi , @YugesRaj001
I test it in my side , it can work like this, can you check if you input the correct subject and it contains in your raw return?
If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance!
Best Regards,
Yueyun Zhang
Hi @v-yueyun-msft Thank you for your response , I have tried the same but the API is not fetching any emails that is the output is empty , it is considering "%23" as a string. Can you help me in this.
Hi , @YugesRaj001
Please replace the # to %23 in your side:
If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance!
Best Regards,
Yueyun Zhang
Pstork1
20
Most Valuable Professional
Gprior
19
stampcoin
16