Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On mobile Outlook Office.context.mailbox.item.getAsFileAsync((asyncResult) fails (Desktop ok) #5415

Open
DunhamGitHub opened this issue Feb 21, 2025 · 0 comments
Labels
Area: Outlook Issue related to Outlook add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback

Comments

@DunhamGitHub
Copy link

DunhamGitHub commented Feb 21, 2025

Office.context.mailbox.item.getAsFileAsync on a Mobile Addin results in Error: You don't have sufficient permissions for this action.


Using an mobile Addin like here and then trying to fetch the currently open Email as file (Base64) through function Office.context.mailbox.item.getAsFileAsync works Desktop but fails on iOS Outlook.

-> How to adjust / what to update for Mobile?

Office.context.mailbox.item.getAsFileAsync((asyncResult) => {
	if (asyncResult.status === Office.AsyncResultStatus.Failed) {
		$('#console').append(' error_office');
		// ---> MOBILE ends here
console.log(`Error encountered during processing: ${asyncResult.error.message}`);
		return;
	}
});
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Feb 21, 2025
@exextoc exextoc added Area: Outlook Issue related to Outlook add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Outlook Issue related to Outlook add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback
Projects
None yet
Development

No branches or pull requests

2 participants