# Outlook Attachment Component

## Overview

This flow can be used to as an example of how to handle OAuth 2 Authorization Code Flow within mobile clients on Novacura Flow.&#x20;

<div align="left"><img src="https://3218748546-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiW42YxFsGXIDjQJKNR%2Fuploads%2FemRWXIPbqRaaAWp265E7%2Foverview_wf.png?alt=media&#x26;token=f591c803-ccc3-4e0c-adbc-0257faad55a4" alt=""></div>

## Main Menu

* The starting point of application
* Select OAuth 2.0 Authorization Code Flow to start the application

| ![](https://3218748546-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiW42YxFsGXIDjQJKNR%2Fuploads%2FIvDsk6M5D5960sJ2YqGW%2FPicture91s.png?alt=media\&token=013f644c-1ee8-44bf-9ee9-631716fc560b) |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

## **Login and Redirect**

* Login using your Microsoft Active Directory credentials
* Once successfully select Continue to sign in to Microsoft Graph
* It automatically redirects to incoming messages

| ![](https://3218748546-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiW42YxFsGXIDjQJKNR%2Fuploads%2FLc8LBMafbb8BPrggJkxW%2FPicture92s.png?alt=media\&token=8cff9a04-ceaf-4bfd-99e6-3b05cf238c8e)![](https://3218748546-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiW42YxFsGXIDjQJKNR%2Fuploads%2FJK0xcYPaxMOfCLzJW4wd%2FPicture93s.png?alt=media\&token=a3d317b1-9eb5-4f07-889e-7d2aade92f63) |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

## List Messages

* Select from a List of Messages from Outlook

{% hint style="info" %}
All messages other than draft messages are currently shown. You can filter this further by changing the filter variable in the connector if required (currently set to isDraft eq false).&#x20;

For more information see [List Messages API](https://docs.microsoft.com/en-us/graph/api/user-list-messages?view=graph-rest-1.0\&tabs=http).
{% endhint %}

| ![](https://3218748546-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiW42YxFsGXIDjQJKNR%2Fuploads%2FxFMj0RmZ7CSi7EP7oHwR%2FPicture94s.png?alt=media\&token=ad96d213-a0a0-496e-89d4-6f4c64447c68) |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

## Review Attachments

* Link to a WebView of the message
* Review all attachments in the email (including inline attachments)

{% hint style="info" %}
For more information see [List Attachments API](https://docs.microsoft.com/en-us/graph/api/message-list-attachments?view=graph-rest-1.0\&tabs=http).
{% endhint %}

| ![](https://3218748546-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiW42YxFsGXIDjQJKNR%2Fuploads%2Fjr6bonp2iBdo7MbR7EKz%2FPicture95s.png?alt=media\&token=fe1c0d0d-71ff-4cc6-995f-d3ab9302a438) |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.novacura.com/marketplace-documentation/components/explore-components/outlook-attachment/documentation/outlook-attachment-component.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
