From 6428280d824daf8e92fc46a55bc65444bcf2c20a Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Thu, 18 Sep 2025 14:56:44 -0400 Subject: [PATCH 1/3] 403 error message --- components/microsoft_outlook/microsoft_outlook.app.mjs | 10 ++++++++-- components/microsoft_outlook/package.json | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/components/microsoft_outlook/microsoft_outlook.app.mjs b/components/microsoft_outlook/microsoft_outlook.app.mjs index 44dd6fb7f8815..50fb0c5866d55 100644 --- a/components/microsoft_outlook/microsoft_outlook.app.mjs +++ b/components/microsoft_outlook/microsoft_outlook.app.mjs @@ -276,8 +276,14 @@ export default { headers: this._getHeaders(headers), ...otherConfig, }; - - return axios($ ?? this, config); + try { + return await axios($ ?? this, config); + } catch (error) { + if (error.response.status === 403) { + throw new Error("Insufficient permissions. Please verify that your Microsoft account has the necessary permissions to perform this operation."); + } + throw error; + } }, async createHook({ ...args } = {}) { const response = await this._makeRequest({ diff --git a/components/microsoft_outlook/package.json b/components/microsoft_outlook/package.json index 513a7d2754097..43afc41c2140a 100644 --- a/components/microsoft_outlook/package.json +++ b/components/microsoft_outlook/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/microsoft_outlook", - "version": "1.7.0", + "version": "1.7.1", "description": "Pipedream Microsoft Outlook Components", "main": "microsoft_outlook.app.mjs", "keywords": [ From 0b8b3f209aac983623df8392da6a1bf1308dc76c Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Thu, 18 Sep 2025 15:01:52 -0400 Subject: [PATCH 2/3] versions --- .../actions/add-label-to-email/add-label-to-email.mjs | 2 +- .../actions/approve-workflow/approve-workflow.mjs | 2 +- .../microsoft_outlook/actions/create-contact/create-contact.mjs | 2 +- .../actions/create-draft-email/create-draft-email.mjs | 2 +- .../actions/download-attachment/download-attachment.mjs | 2 +- .../microsoft_outlook/actions/find-contacts/find-contacts.mjs | 2 +- components/microsoft_outlook/actions/find-email/find-email.mjs | 2 +- .../find-shared-folder-email/find-shared-folder-email.mjs | 2 +- .../microsoft_outlook/actions/list-contacts/list-contacts.mjs | 2 +- .../microsoft_outlook/actions/list-folders/list-folders.mjs | 2 +- .../microsoft_outlook/actions/list-labels/list-labels.mjs | 2 +- .../actions/move-email-to-folder/move-email-to-folder.mjs | 2 +- .../actions/remove-label-from-email/remove-label-from-email.mjs | 2 +- .../microsoft_outlook/actions/reply-to-email/reply-to-email.mjs | 2 +- components/microsoft_outlook/actions/send-email/send-email.mjs | 2 +- .../microsoft_outlook/actions/update-contact/update-contact.mjs | 2 +- .../sources/new-attachment-received/new-attachment-received.mjs | 2 +- .../microsoft_outlook/sources/new-contact/new-contact.mjs | 2 +- .../new-email-in-shared-folder/new-email-in-shared-folder.mjs | 2 +- components/microsoft_outlook/sources/new-email/new-email.mjs | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/components/microsoft_outlook/actions/add-label-to-email/add-label-to-email.mjs b/components/microsoft_outlook/actions/add-label-to-email/add-label-to-email.mjs index 1b5388d57aca4..98ba1f2fe901e 100644 --- a/components/microsoft_outlook/actions/add-label-to-email/add-label-to-email.mjs +++ b/components/microsoft_outlook/actions/add-label-to-email/add-label-to-email.mjs @@ -5,7 +5,7 @@ export default { key: "microsoft_outlook-add-label-to-email", name: "Add Label to Email", description: "Adds a label/category to an email in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/message-update)", - version: "0.0.9", + version: "0.0.10", type: "action", props: { microsoftOutlook, diff --git a/components/microsoft_outlook/actions/approve-workflow/approve-workflow.mjs b/components/microsoft_outlook/actions/approve-workflow/approve-workflow.mjs index 33ffd0b4f1d5b..78e5f1519bd02 100644 --- a/components/microsoft_outlook/actions/approve-workflow/approve-workflow.mjs +++ b/components/microsoft_outlook/actions/approve-workflow/approve-workflow.mjs @@ -4,7 +4,7 @@ export default { key: "microsoft_outlook-approve-workflow", name: "Approve Workflow", description: "Suspend the workflow until approved by email. [See the documentation](https://pipedream.com/docs/code/nodejs/rerun#flowsuspend)", - version: "0.0.7", + version: "0.0.8", type: "action", props: { microsoftOutlook, diff --git a/components/microsoft_outlook/actions/create-contact/create-contact.mjs b/components/microsoft_outlook/actions/create-contact/create-contact.mjs index 2cc43a2379f7b..461788aac20ee 100644 --- a/components/microsoft_outlook/actions/create-contact/create-contact.mjs +++ b/components/microsoft_outlook/actions/create-contact/create-contact.mjs @@ -3,7 +3,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs"; export default { type: "action", key: "microsoft_outlook-create-contact", - version: "0.0.16", + version: "0.0.17", name: "Create Contact", description: "Add a contact to the root Contacts folder, [See the documentation](https://docs.microsoft.com/en-us/graph/api/user-post-contacts)", props: { diff --git a/components/microsoft_outlook/actions/create-draft-email/create-draft-email.mjs b/components/microsoft_outlook/actions/create-draft-email/create-draft-email.mjs index e6a24ae3624fb..980a76541c272 100644 --- a/components/microsoft_outlook/actions/create-draft-email/create-draft-email.mjs +++ b/components/microsoft_outlook/actions/create-draft-email/create-draft-email.mjs @@ -4,7 +4,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs"; export default { type: "action", key: "microsoft_outlook-create-draft-email", - version: "0.0.16", + version: "0.0.17", name: "Create Draft Email", description: "Create a draft email, [See the documentation](https://docs.microsoft.com/en-us/graph/api/user-post-messages)", props: { diff --git a/components/microsoft_outlook/actions/download-attachment/download-attachment.mjs b/components/microsoft_outlook/actions/download-attachment/download-attachment.mjs index 69521d0e54a7e..a81058b67fbf7 100644 --- a/components/microsoft_outlook/actions/download-attachment/download-attachment.mjs +++ b/components/microsoft_outlook/actions/download-attachment/download-attachment.mjs @@ -6,7 +6,7 @@ export default { key: "microsoft_outlook-download-attachment", name: "Download Attachment", description: "Downloads an attachment to the /tmp directory. [See the documentation](https://learn.microsoft.com/en-us/graph/api/attachment-get?view=graph-rest-1.0&tabs=http)", - version: "0.0.4", + version: "0.0.5", type: "action", props: { microsoftOutlook, diff --git a/components/microsoft_outlook/actions/find-contacts/find-contacts.mjs b/components/microsoft_outlook/actions/find-contacts/find-contacts.mjs index 9a1dcf3b2c392..77f5248e4fe99 100644 --- a/components/microsoft_outlook/actions/find-contacts/find-contacts.mjs +++ b/components/microsoft_outlook/actions/find-contacts/find-contacts.mjs @@ -3,7 +3,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs"; export default { type: "action", key: "microsoft_outlook-find-contacts", - version: "0.0.16", + version: "0.0.17", name: "Find Contacts", description: "Finds contacts with the given search string. [See the documentation](https://docs.microsoft.com/en-us/graph/api/user-list-contacts)", props: { diff --git a/components/microsoft_outlook/actions/find-email/find-email.mjs b/components/microsoft_outlook/actions/find-email/find-email.mjs index aeea67144769f..9e3c8355dde76 100644 --- a/components/microsoft_outlook/actions/find-email/find-email.mjs +++ b/components/microsoft_outlook/actions/find-email/find-email.mjs @@ -4,7 +4,7 @@ export default { key: "microsoft_outlook-find-email", name: "Find Email", description: "Search for an email in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/user-list-messages)", - version: "0.0.10", + version: "0.0.11", type: "action", props: { microsoftOutlook, diff --git a/components/microsoft_outlook/actions/find-shared-folder-email/find-shared-folder-email.mjs b/components/microsoft_outlook/actions/find-shared-folder-email/find-shared-folder-email.mjs index 2c949c68127a4..4efa91d26b6b5 100644 --- a/components/microsoft_outlook/actions/find-shared-folder-email/find-shared-folder-email.mjs +++ b/components/microsoft_outlook/actions/find-shared-folder-email/find-shared-folder-email.mjs @@ -4,7 +4,7 @@ export default { key: "microsoft_outlook-find-shared-folder-email", name: "Find Shared Folder Email", description: "Search for an email in a shared folder in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/user-list-messages)", - version: "0.0.1", + version: "0.0.2", type: "action", props: { microsoftOutlook, diff --git a/components/microsoft_outlook/actions/list-contacts/list-contacts.mjs b/components/microsoft_outlook/actions/list-contacts/list-contacts.mjs index b3afca19c79af..02591eeb6310c 100644 --- a/components/microsoft_outlook/actions/list-contacts/list-contacts.mjs +++ b/components/microsoft_outlook/actions/list-contacts/list-contacts.mjs @@ -3,7 +3,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs"; export default { type: "action", key: "microsoft_outlook-list-contacts", - version: "0.0.16", + version: "0.0.17", name: "List Contacts", description: "Get a contact collection from the default contacts folder, [See the documentation](https://docs.microsoft.com/en-us/graph/api/user-list-contacts)", props: { diff --git a/components/microsoft_outlook/actions/list-folders/list-folders.mjs b/components/microsoft_outlook/actions/list-folders/list-folders.mjs index 20deaa00a752f..156a5f291ae50 100644 --- a/components/microsoft_outlook/actions/list-folders/list-folders.mjs +++ b/components/microsoft_outlook/actions/list-folders/list-folders.mjs @@ -4,7 +4,7 @@ export default { key: "microsoft_outlook-list-folders", name: "List Folders", description: "Retrieves a list of all folders in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/user-list-mailfolders)", - version: "0.0.7", + version: "0.0.8", type: "action", props: { microsoftOutlook, diff --git a/components/microsoft_outlook/actions/list-labels/list-labels.mjs b/components/microsoft_outlook/actions/list-labels/list-labels.mjs index 9810d07bb1e1c..2ba3bff5dfa21 100644 --- a/components/microsoft_outlook/actions/list-labels/list-labels.mjs +++ b/components/microsoft_outlook/actions/list-labels/list-labels.mjs @@ -4,7 +4,7 @@ export default { key: "microsoft_outlook-list-labels", name: "List Labels", description: "Get all the labels/categories that have been defined for a user. [See the documentation](https://learn.microsoft.com/en-us/graph/api/outlookuser-list-mastercategories)", - version: "0.0.9", + version: "0.0.10", type: "action", props: { microsoftOutlook, diff --git a/components/microsoft_outlook/actions/move-email-to-folder/move-email-to-folder.mjs b/components/microsoft_outlook/actions/move-email-to-folder/move-email-to-folder.mjs index 43d75cda78ff5..027773ac6b688 100644 --- a/components/microsoft_outlook/actions/move-email-to-folder/move-email-to-folder.mjs +++ b/components/microsoft_outlook/actions/move-email-to-folder/move-email-to-folder.mjs @@ -4,7 +4,7 @@ export default { key: "microsoft_outlook-move-email-to-folder", name: "Move Email to Folder", description: "Moves an email to the specified folder in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/message-move)", - version: "0.0.7", + version: "0.0.8", type: "action", props: { microsoftOutlook, diff --git a/components/microsoft_outlook/actions/remove-label-from-email/remove-label-from-email.mjs b/components/microsoft_outlook/actions/remove-label-from-email/remove-label-from-email.mjs index 5cb184df4ba10..4fdce895af1c7 100644 --- a/components/microsoft_outlook/actions/remove-label-from-email/remove-label-from-email.mjs +++ b/components/microsoft_outlook/actions/remove-label-from-email/remove-label-from-email.mjs @@ -4,7 +4,7 @@ export default { key: "microsoft_outlook-remove-label-from-email", name: "Remove Label from Email", description: "Removes a label/category from an email in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/message-update)", - version: "0.0.9", + version: "0.0.10", type: "action", props: { microsoftOutlook, diff --git a/components/microsoft_outlook/actions/reply-to-email/reply-to-email.mjs b/components/microsoft_outlook/actions/reply-to-email/reply-to-email.mjs index e44b02e4e4ebf..18f20d16ad0ec 100644 --- a/components/microsoft_outlook/actions/reply-to-email/reply-to-email.mjs +++ b/components/microsoft_outlook/actions/reply-to-email/reply-to-email.mjs @@ -4,7 +4,7 @@ export default { key: "microsoft_outlook-reply-to-email", name: "Reply to Email", description: "Reply to an email in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/message-reply)", - version: "0.0.6", + version: "0.0.7", type: "action", props: { microsoftOutlook, diff --git a/components/microsoft_outlook/actions/send-email/send-email.mjs b/components/microsoft_outlook/actions/send-email/send-email.mjs index 46ce0a5f3e9fa..505a34a327069 100644 --- a/components/microsoft_outlook/actions/send-email/send-email.mjs +++ b/components/microsoft_outlook/actions/send-email/send-email.mjs @@ -4,7 +4,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs"; export default { type: "action", key: "microsoft_outlook-send-email", - version: "0.0.17", + version: "0.0.18", name: "Send Email", description: "Send an email to one or multiple recipients, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-sendmail)", props: { diff --git a/components/microsoft_outlook/actions/update-contact/update-contact.mjs b/components/microsoft_outlook/actions/update-contact/update-contact.mjs index 09967ffdba29e..28f5240a5b245 100644 --- a/components/microsoft_outlook/actions/update-contact/update-contact.mjs +++ b/components/microsoft_outlook/actions/update-contact/update-contact.mjs @@ -3,7 +3,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs"; export default { type: "action", key: "microsoft_outlook-update-contact", - version: "0.0.16", + version: "0.0.17", name: "Update Contact", description: "Update an existing contact, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-post-contacts)", props: { diff --git a/components/microsoft_outlook/sources/new-attachment-received/new-attachment-received.mjs b/components/microsoft_outlook/sources/new-attachment-received/new-attachment-received.mjs index e15bc37c27441..1192236a7a7fb 100644 --- a/components/microsoft_outlook/sources/new-attachment-received/new-attachment-received.mjs +++ b/components/microsoft_outlook/sources/new-attachment-received/new-attachment-received.mjs @@ -6,7 +6,7 @@ export default { key: "microsoft_outlook-new-attachment-received", name: "New Attachment Received (Instant)", description: "Emit new event when a new email containing one or more attachments arrives in a specified Microsoft Outlook folder.", - version: "0.1.0", + version: "0.1.1", type: "source", dedupe: "unique", props: { diff --git a/components/microsoft_outlook/sources/new-contact/new-contact.mjs b/components/microsoft_outlook/sources/new-contact/new-contact.mjs index 1f0a51c3f2991..60a9a9b693c10 100644 --- a/components/microsoft_outlook/sources/new-contact/new-contact.mjs +++ b/components/microsoft_outlook/sources/new-contact/new-contact.mjs @@ -5,7 +5,7 @@ export default { key: "microsoft_outlook-new-contact", name: "New Contact Event (Instant)", description: "Emit new event when a new Contact is created", - version: "0.0.17", + version: "0.0.18", type: "source", hooks: { ...common.hooks, diff --git a/components/microsoft_outlook/sources/new-email-in-shared-folder/new-email-in-shared-folder.mjs b/components/microsoft_outlook/sources/new-email-in-shared-folder/new-email-in-shared-folder.mjs index 097fbb229cc42..9198a10bf5f2f 100644 --- a/components/microsoft_outlook/sources/new-email-in-shared-folder/new-email-in-shared-folder.mjs +++ b/components/microsoft_outlook/sources/new-email-in-shared-folder/new-email-in-shared-folder.mjs @@ -6,7 +6,7 @@ export default { key: "microsoft_outlook-new-email-in-shared-folder", name: "New Email in Shared Folder Event", description: "Emit new event when an email is received in specified shared folders.", - version: "0.0.1", + version: "0.0.2", type: "source", dedupe: "unique", props: { diff --git a/components/microsoft_outlook/sources/new-email/new-email.mjs b/components/microsoft_outlook/sources/new-email/new-email.mjs index ba04a634d1781..a58c9bfd79985 100644 --- a/components/microsoft_outlook/sources/new-email/new-email.mjs +++ b/components/microsoft_outlook/sources/new-email/new-email.mjs @@ -7,7 +7,7 @@ export default { key: "microsoft_outlook-new-email", name: "New Email Event (Instant)", description: "Emit new event when an email is received in specified folders.", - version: "0.1.2", + version: "0.1.3", type: "source", dedupe: "unique", methods: { From f3d7c6d0f297579c1ffb51c80b062dc23cc2e228 Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Thu, 18 Sep 2025 15:15:38 -0400 Subject: [PATCH 3/3] update --- components/microsoft_outlook/microsoft_outlook.app.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/microsoft_outlook/microsoft_outlook.app.mjs b/components/microsoft_outlook/microsoft_outlook.app.mjs index 50fb0c5866d55..1ea4149372d8b 100644 --- a/components/microsoft_outlook/microsoft_outlook.app.mjs +++ b/components/microsoft_outlook/microsoft_outlook.app.mjs @@ -279,7 +279,7 @@ export default { try { return await axios($ ?? this, config); } catch (error) { - if (error.response.status === 403) { + if (error?.response?.status === 403) { throw new Error("Insufficient permissions. Please verify that your Microsoft account has the necessary permissions to perform this operation."); } throw error;