Can we access archive mailbox (In Place archived) using Graph API - microsoft-graph-api

I am trying to access Archive Mailbox (In Place archived) , using MS Graph API , but found that its not working.
Does MsGraph support it ? If not then whats the other programatic way to get this content? Any other API?

No InPlace Archives aren't currently accessible using the Graph API, you can access them using EWS https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth then something like this would list the folder in the Archive
FolderView fv = new FolderView(1000);
FindFoldersResults ffResults = service.FindFolders(WellKnownFolderName.ArchiveMsgFolderRoot, fv);

Related

Move email from Inbox to Microsoft group mailbox in Outlook web add-in

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

Download attachment in private Microsoft Team chat via Graph API

I am trying to download attachments in private chat via graph API. When I execute the below query in Microsoft Graph Explorer. I am able to get the attachment id and path.
https://graph.microsoft.com/v1.0/me/chats/{chat-id}/messages/{message-id}/
But how can I download this file?
Files are not available when requested for hostedContents. So, I believe hostedContents is not an option.
Firstly the files are hosted in chat so it will not give 404 before but after exporting to onedrive then it will delete from there thats why its returning 404.
You have to use below API's to download file from onedrive because its exported to onedrive.
GET /drives/{drive-id}/items/{item-id}/content
GET /groups/{group-id}/drive/items/{item-id}/content
GET /me/drive/root:/{item-path}:/content
GET /me/drive/items/{item-id}/content
GET /shares/{shareIdOrEncodedSharingUrl}/driveItem/content
GET /sites/{siteId}/drive/items/{item-id}/content
GET /users/{userId}/drive/items/{item-id}/content
Reference Doc: https://learn.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&tabs=http

Can I send a OneDrive File Request using Microsoft's Graph API?

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.

is it possible to assign a Microsoft Teams App to a user using the Graph API?

I can see the Graph API call to assign a Teams App to a given team, but I can't see a call to assign an App to a given user.
Is this possible using the Graph API?
If not, are there any other ways to perform this programmatically?
https://learn.microsoft.com/en-us/graph/teams-proactive-messaging#install-the-app-for-your-users
This capability is now available via the Graph API

Archiving an Asana Project using the API

How can I archive a project using the api?
The api documentation for projects shows that projects have an 'archived' attribute, but when I try to update it, I get a message that it's read only.
Unfortunately, there is no way to write to this endpoint in the Asana API.

Resources