Set Query Parameters to Filter the Return of Messages
You use query parameters to filter the content of email messages returned by the Microsoft Office 365 Outlook Adapter.
This section provides a high-level overview of designing and running an
integration that uses query parameters to filter the content of email messages returned
by the Microsoft Office 365
Outlook Adapter.
- Create a REST Adapter trigger connection and Microsoft Office 365 Outlook Adapter invoke connection.
- Create an application integration.
- Drag the REST Adapter into the integration canvas and
create the following query parameters:
- Drag the Microsoft Office 365
Outlook Adapter
into the integration canvas and configure it as follows.
- On the Basic Info page, enter the name.
- On the Operations page, select Get messages to return a collection of emails from your mail box.
- On the Request Parameters page, select the query parameters to use to
filter the content of email messages returned by the Microsoft Office 365
Outlook Adapter.
- Open the mapper and map the source REST Adapter query
parameters to the target Microsoft Office 365
Outlook Adapter query parameters.
- Drag a data stitch action below the Microsoft Office 365
Outlook Adapter to save the results of the Microsoft Office 365
Outlook Adapter operation
in a variable.
- Activate the integration.
- Click the Actions
menu, and select Run.
- Specify values for the following parameters and deselect any unused parameters,
then click Run.
URI Parameter Value Result of Setting trigger_query_param_for_top 2
Returns two emails. trigger_query_param_for_search Enterprise
Returns emails that include the word Enterprise
somewhere in the object properties.trigger_query_param_for_select subject, isRead, createdDateTime
Returns emails that include these object properties. When processing completes, the Response section shows two emails returned with the following content:- The word
Enterprise
- The
subject
,isRead
, andcreatedDateTime
object properties
Rerun the integration again with slightly different query parameters.
- The word
- Deselect trigger_query_param_for_search and select trigger_query_param_for_filter this time.
- Specify values for the following parameters, then click
Run.
URI Parameter Value Result of Setting trigger_query_param_for_top 2
Returns two emails. trigger_query_param_for_filter isRead eq true
Returns emails in which the isRead
object property is set totrue
, meaning the email has been read.trigger_query_param_for_select subject, isRead, createdDateTime
Returns emails that include these object properties. When processing completes, the Response section shows two emails returned with the following content:- The
subject
,isRead
, andcreatedDateTime
object properties - The
isRead
object property set totrue
- The