简体   繁体   中英

How do we add sharepoint documents to email in dynamics 365?

I have created a Sharepoint site and configured it in Dynamics 365 from "Document Management".

Then created an Account and a Lead in Dynamic 365. From Lead if I browse to "Documents", I can see Sharepoint location in which if I upload a document, it will reflect in Sharepoint Online. And if I upload document to entity of Lead in Sharepoint Online, that document can be browsed from Dynamics 365.

Now the question is I have to send a Email to that Lead, how can I add that sharepoint document as link or attachment to email? As there is no such option from Dynamics 365 to do so.

PS- I don't want to manually copy the link of document from Sharepoint-Online and paste it in email while composing in Dynamics-365.

High level steps:

  1. You can register a plugin on pre-create of Email
  2. In that plugin query the RegardingObjectId of Email which is LeadId
  3. Query SharePointDocumentLocation entity using RetreiveMultiple by filtering RegardingObjectId = LeadId from step 2
  4. Compose & embed the Document url in Email body by concatenating Absolute url of Sharepoint site & Relative url of document location for each result in step 3

Reference .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM