Skip to content

Commit

Permalink
fix(outlook): Tweak outlook format to be plain text instead of html (#45
Browse files Browse the repository at this point in the history
)

## Describe your changes
Output text instead of html

## Issue ticket number and link

## Checklist before requesting a review (skip if just adding/editing
APIs & templates)
- [ ] I added tests, otherwise the reason is:
- [ ] External API requests have `retries`
- [ ] Pagination is used where appropriate
- [ ] The built in `nango.paginate` call is used instead of a `while
(true)` loop
- [ ] Third party requests are NOT parallelized (this can cause issues
with rate limits)
- [ ] If a sync requires metadata the `nango.yaml` has `auto_start:
false`
- [ ] If the sync is a `full` sync then `track_deletes: true` is set
  • Loading branch information
khaliqgant authored Oct 9, 2024
1 parent 2d39775 commit 9c9b2a7
Show file tree
Hide file tree
Showing 5 changed files with 251 additions and 246 deletions.
1 change: 1 addition & 0 deletions flows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3993,6 +3993,7 @@ integrations:
output: OutlookEmail
sync_type: incremental
endpoint: GET /emails
version: 1.0.0
actions:
fetch-attachment:
input: DocumentInput
Expand Down
164 changes: 82 additions & 82 deletions integrations/outlook/mocks/emails/OutlookEmail/batchSave.json

Large diffs are not rendered by default.

328 changes: 164 additions & 164 deletions integrations/outlook/mocks/nango/get/proxy/v1.0/me/messages/emails.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions integrations/outlook/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ integrations:
output: OutlookEmail
sync_type: incremental
endpoint: GET /emails
version: 1.0.0
actions:
fetch-attachment:
input: DocumentInput
Expand Down
3 changes: 3 additions & 0 deletions integrations/outlook/syncs/emails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export default async function fetchData(nango: NangoSync) {
$filter: `receivedDateTime ge ${syncDate.toISOString()}`,
$select: 'id,from,toRecipients,receivedDateTime,subject,attachments,conversationId,body'
},
headers: {
Prefer: 'outlook.body-content-type="text"'
},
paginate: {
type: 'link',
limit_name_in_request: '$top',
Expand Down

0 comments on commit 9c9b2a7

Please sign in to comment.