UNPKG

@pipedream/microsoft_outlook

Version:

Pipedream Microsoft Outlook Components

35 lines (33 loc) 913 B
import microsoft_outlook from "../../microsoft_outlook.app.mjs"; export default { key: "microsoft_outlook-list-folder-ids-options", name: "List Folder IDs to Monitor Options", description: "Retrieves available options for the Folder IDs to Monitor field.", version: "0.0.4", type: "action", annotations: { destructiveHint: false, openWorldHint: true, readOnlyHint: true, }, props: { microsoft_outlook, page: { type: "integer", label: "Page", description: "The page of results to retrieve.", min: 0, default: 0, }, }, async run({ $ }) { const options = await microsoft_outlook.propDefinitions.folderIds.options .call(this.microsoft_outlook, { page: this.page, }); $.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1 ? "" : "s"}`); return options; }, };