We need to search mails in Sent Mail folder. Currently it is searching in Inbox alone. What is the call we need to use for searching mail in all folder or the Sent Mail folder?
Graph API gives support to the outlook api. If you are interested in Graph API then try this.
GET /me/mailFolders('SentItems')/messages?$select=sender,subject
You can use well-known folder names such as Inbox, Drafts, SentItems, or DeletedItems to identify certain mail folders that exist by default for all users.
The following should work for you:
GET https://outlook.office.com/api/v2.0/me/MailFolders/{folder_id}/messages
The folder ID, or the Inbox, Drafts, SentItems, or DeletedItems well-known folder name, if you're getting messages from a specific folder. Specifying AllItems would return all messages from the entire mailbox.
Related
I am working on custom outlook web add-in where I need to move the email from my Inbox to the selected Microsoft Group mailbox programmatically.
I checked the move-message endpoint https://learn.microsoft.com/en-us/graph/api/message-move but that requires destination folder Id which I am not able to get it.
Is this possible using Graph API or any other way?
The Graph API doesn't support moving messages between mailboxes so what you described wouldn't work at least with the move operation even if you had the Id. There are also some limitations around shared mailboxes in add-ins https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/delegate-access?tabs=windows
I have subscribed to /communications/callRecords to get notifications whenever a call is available in Teams. At the moment the call is saved in SharePoint under the Recordings folder.
Is there a way in the Microsoft Graph API to link the callRecord to a file in SharePoint Drive to download it?
Thanks.
AFAIK the above feature is not available. Rather you may want to subscribe to callrecords and see if it provides the location or not.
Microsoft OneDrive allows you to send a "file request" so others can send you very large files without needing a OneDrive account themselves.
I'm wanting to use an API (probably Microsoft Graph API)) to automatically create file requests on a user's behalf, and delete them later too.
Is it possible to create a OneDrive file request via an API? If so, where is that documented?
Thanks for your time!
Looks like that feature is not available yet. I see a feature request for the same in MS Graph user voice page. Please upvote/comment on the same so that the feature team will get better visibility.
I'm using POP3 to fetch emails from gmail, I want to fetch a list of folders present in my gmail account but not finding a way of doing it. In IMAP there's a method list("","*") through which we can fetch the folders and then by using select("folder_name") we could fetch the emails.
How to fetch the list of folders via POP3. Please help. Thanks.
POP3 does not have the concept of folders. It is a very old mail protocol. There is only the Inbox. If you ever see folders on a POP3 client (like in outlook), that is a client side implementation. There are no folders on a POP3 server.
If you need access to the Gmail folders, you need to use IMAP.
hth,
Dave
I'm working with a Ruby/Rails app that sends out meeting requests to Outlook addresses. The meeting requests also go to some office resources that need to be reserved for these meetings.
I want to be able to notify someone if the resources decline the meeting request, but I can't get a reply from them. When the meeting shows up in Outlook, it says the organizer does not require a response.
Currently, I have the following line in my iCalendar file generation:
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE:MAILTO:#{attendee.email}
Having looked through many Google results, I am under the impression that this should work. Does anyone have any suggestions?
Outlook was not recognizing the RSVP value because of how I had set things up. I was using my email address both for the organizer and for a separate attendee, for testing. Once I used another address for the organizer, it showed up correctly.
Here and here were helpful Microsoft documents.