Maintain control of your Microsoft 365 data
Post Reply
rjmay
Service Provider
Posts: 2
Liked: never
Joined: May 18, 2018 12:54 pm
Full Name: Richard J May
Contact:

Searching with API for 365 Backup

Post by rjmay »

Thought the api it seems that you can only perform queries like

{
"search":{
"query": "from:user_X to:user_Y"
}
}

How would I implement a query like

subject startswith "Mail" or subject contains "Mail"

Thanks
nielsengelen
Product Manager
Posts: 5797
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Searching with API for 365 Backup

Post by nielsengelen » 1 person likes this post

Hi, all possible search options are available in the user guide.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
rjmay
Service Provider
Posts: 2
Liked: never
Joined: May 18, 2018 12:54 pm
Full Name: Richard J May
Contact:

Re: Searching with API for 365 Backup

Post by rjmay »

Thanks but there are no examples of operators, so how would I put something like System.Contact.AssistantName ValueStartWith Mail into JSON.
nielsengelen
Product Manager
Posts: 5797
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Searching with API for 365 Backup

Post by nielsengelen »

Normally if u search for subject:"Mail", it should return all the items with your initial request.

On the second one, I believe assistantname:”test” AND subject:"Mail" should give the results.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
Mike Resseler
Product Manager
Posts: 8191
Liked: 1322 times
Joined: Feb 08, 2013 3:08 pm
Full Name: Mike Resseler
Location: Belgium
Contact:

Re: Searching with API for 365 Backup

Post by Mike Resseler »

@rjmay

You can use the exact same query syntax as you can use in the Outlook search
Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests