OfficeDev / OfficeDev/office-js

Add addFileAttachmentAsModernAttachmentAsync and addFileAttachmentAsModernAttachmentFromBase64Async feature

Open
#4,166 2 comments 0 reactions 1 assignee View on GitHub

@exextoc is already working on this.

Since Feb 26, 2024.

Area: Outlook Type: product feature request
Dominant language
JavaScript
Stars
845
Forks
124
Avg merge
3d 17h
Merged PRs (30d)
1

Description

Hi!
It is not possible to programmatically add a file as a sharing link in OneDrive or SharePoint.
You can do this from the web or even using VSTO (adding the method 7).

I think there should be one function like addFileAttachmentAsModernAttachmentAsync that would basically take 2 parameters:
The original URL in the web
The sharing method to use
and it should visually add the sharing link with all the options like:
image

The same with addFileAttachmentAsModernAttachmentFromBase64Async. It should take 2 parameters:
The base64 string without any size restriction
The sharing method to use

The functions should do the sharing (with the sharing method like AnyoneCanView or the new "AnyoneCanViewWithPassword") and add the sharing link.

Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.