Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Is it possible to attach the documents uploaded to the Documents(Sharepoint) in an Email as attachments?

Posted on by 1,258

Here's the scenario: 

  1. Open a record.
  2. Upload a file in the Documents(Sharepoint) section of the form.
  3. Send an Email from that record and get the uploaded documents and add it as email attachments.

Is this even possible? Any ideas?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is it possible to attach the documents uploaded to the Documents(Sharepoint) in an Email as attachments?

    Hi Kokulan, You previously mentioned that it is possible to manually browse to sharepoint folder, select the file and attach to the email.

    What about the other way? From the email activity and form in Dynamics, can you attach a file and the file browser will view the default sharepoint site/folder?

  • Inogic Profile Picture
    Inogic 24,094 on at
    RE: Is it possible to attach the documents uploaded to the Documents(Sharepoint) in an Email as attachments?

    Hi Marjorie,

    You can try using Attach2Dynamics, it offers all the features you are searching for and also, in future Attach2Dynamics will support moving/uploading of attachments to Azure Blob Storage.

    For more details drop in a mail on crm@inogic.com.

    Hope this helps.

    Thanks!

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Is it possible to attach the documents uploaded to the Documents(Sharepoint) in an Email as attachments?

    This could be done few different ways, following is the option i would go for

    In short : You will have to create a Custom Workflow Activity (CWA) that gets the document location from document location entity using the current record GUID, this then queries SharePoint to get list of documents in that location. You will have to define which document should be attached. Is it the first document or particular type or file name or a document with particular meta data.  This could attache single or multiple attachment.

    The CWA would also take the email that it needs to attach to  (it means you can use Create Record step the create the email  before you call the CWA) and do the attachment and send the email.

    Links to help on this

    docs.microsoft.com/.../sample-retrieve-absolute-url-and-site-collection-url-of-a-location-record

    docs.microsoft.com/.../actions-on-sharepoint-location-records

    This link might also help to understand how you could communicate to SharePoint from CRM CWA or Plugin

    code.msdn.microsoft.com/SharePoint-Integration-c5f21604

    A second approach is to consider using flow

    powerusers.microsoft.com/.../87682

  • MRVIX Profile Picture
    MRVIX 1,258 on at
    RE: Is it possible to attach the documents uploaded to the Documents(Sharepoint) in an Email as attachments?

    Hi Kokulan, thanks for your response. It's going to be automated. Any suggestion on how can this be done?

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Is it possible to attach the documents uploaded to the Documents(Sharepoint) in an Email as attachments?

    Hi

    Is this email manually sent or automated by workflow?

    If its manually sent, yes you can browse to the SharePoint folder where the document is stored and select the file and attach to the email.

    If its going to be automated by lets say a workflow, then Dynamics 365  out of the box does not support this at the moment.

    You could go for third party solutions or you could create your own custom solution.

    Let me know if you need further information on manual attachment or custom solution

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans