Skip to content

Create Message with OneDrive Attachment causes error #290

Answered by baywet
dadams39 asked this question in Q&A
Discussion options

You must be logged in to vote

If you want to attach files from OneDrive/SharePoint (not copying them, but sending a link to them) your application needs to:

  1. upload the file to ODSP (if not already there).
  2. (optional) create a sharing link if the recipients are outside of the organization.
  3. create a draft message
  4. create a referenceAttachment (same as add attachment, except with a different class)
  5. send the message

More resources:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dadams39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants