Integrating Changes in Dynamics to SharePoint

   Words by Paul McQuillan

   on 14/10/2019 08:00:00

DocMan for Dynamics tracks events in CRM to integrate these into SharePoint in the correct fashion.

This can help keep storage between the two cloud systems up to date with new records being created, renamed or deleted.

The most notably event is when a new Record is created in Dynamics, this then creates a new Area in SharePoint (following the rules defined for the integration) and connects the two together.


On Creation of a New Lead in Dynamics, this can result in a New Folder being created in SharePoint under a ‘Lead Documents’ Library


This ensures that we have a Document Location in SharePoint for each Record created in CRM, with the DocMan Panel Web Resource then allowing us to view and use this SharePoint Location.

However DocMan also uses three other significant events from CRM to SharePoint:

  • When a Record is updated in CRM, this renames the corresponding Site, Library or Folder in SharePoint
  • When a Record is updated in CRM, this refreshes any applicable Metadata from CRM into the Documents held in SharePoint
  • When a Record is deleted in CRM, this deletes the corresponding SharePoint Location

Each of these Events can be activated or deactivated for an individual Entity in CRM.

To control these events, we can browse to the DocMan Configuration Area in our CRM Settings and to the list of DocMan Entities.

Here, we see the List of Entities that DocMan is configured for within Dynamics:


This List defines which Entities are working in conjunction with SharePoint through the DocMan App Logic.

We can then drill down into that particular Entity to view the settings specific to that Entity in Dynamics.


The area for Core Actions then specifies these 4 Events – and we can activate or deactivate each Event within that Entity as required.

This allows us to control the Rename and Delete events in particular as we may not want these Events in operation for how we use SharePoint alongside Dynamics.

In the particular Scenarios that we have worked with:

  • On Create in CRM – Create in SharePoint, whilst normally best activated, could be deactivated so that a SharePoint Location is not created by default until the Record is first used or a first document is uploaded – this prevents excess locations being created in SharePoint if the Records of the Entity only occasionally need Documents.
  • On Update in CRM – Rename in SharePoint, this is a handy feature in keeping the records in synch between Dynamics and SharePoint but if we have distributed links to a particular SharePoint Location and do not want these links to break after the Record in CRM has been renamed then we may want this deactivated.
  • On Update – Publish Metadata, this can be excellent for ensuring changes in CRM are then published down to each of the Documents – but if we want to say track the Sales Stage of an Opportunity or Quote *when* the Document was uploaded, then we may want this deactivated; as then the Document Metadata will remain a record of when the Document was uploaded instead of being refreshed when the Sales Stage changes.
  • On Delete in CRM – Delete in SharePoint, this helps tidy SharePoint and remove Documents that are linked to a Record that has now been deleted – but we may have rules or policies in our organisation that insist we should keep Documents long after a Record has been deleted and so want this deactivated so the Documents connected with a CRM Record are retained beyond the record itself.
  • Email Attachments in SharePoint, when an Email is tracked in Dynamics from Outlook, this setting defines whether the Email Attachments should automatically be moved to the SharePoint Location for that Record – this can be useful for more readily storing Email Attachments and avoiding bloating the Database for Dynamics with larger files.
  • Note Attachments in SharePoint, if a File is added to the Notes in Dynamics, this setting defines whether this will be automatically moved to SharePoint – this can be useful to ensuring documents are not lost in Notes and are instead always saved in the SharePoint Storage we have defined.

This flexibility can be useful in how we want Dynamics and SharePoint to work together.

Interested in improving how you store and manage Documents using Dynamics 365?  You can find out more about DocMan here, or get in touch with us for our expertise integrating Dynamics, Office and SharePoint together.

Share this Article

Search Articles

Filter Articles

CRM Tech DocMan

Recent Articles

HOW TO: Virtual Entities in Dynamics 365 Release Wave 2 New Feature: The Columns Button HOW TO: Search a date field in Microsoft Dynamics The Relevance Search COMING SOON to Power Apps Portals HOW TO: Manage Your Dynamics 365 Database Size (Video Included) Dynamics 365 Marketing vs ClickDimensions It’s time to pause, reflect and acknowledge a new era of inclusivity and collaboration. Part 2 - How to get the most from a Technology Expert – Asset Management Hub Property & Asset Management Hub Part 1 – Balancing CRM and Asset Management Scopes - Asset Management Hub Creating a Multi-Lingual PowerApps Portal How to Set Up a Microsoft Teams Site Using DocDrive365 Microsoft Teams - Adding a Microsoft Teams URL to a Dynamics Appointment Dynamics 365 Marketing – Customer Voice Survey Not Appearing In Emails? Using SQL Management Studio to connect to the Dynamics DB Calling a Power Platform AI Builder Model via oData How to use DocDrive365 to integrate permissions between Business Units in Dynamics with Sites in SharePoint Getting started with the Power Platform AI Builder. Power Apps Portal Information Hub DocDrive365 Security: Day One - Getting Started with Dynamics to SharePoint Permissions Part 5 - Power Apps Portals: How To Connect Azure B2C With Linked-In Part 4 – Power Apps Portals: Styling Azure B2C for Power Apps Portals The 3 Phases for Using Multi-Select Option Sets in Flow with Microsoft Forms Part 3 – PowerApps Portals: Azure B2C and Power Apps Portals – User Flow for Signup and Signin Part 2 - Power Apps Portals: New Application Registration in Azure B2C for our Power Apps Portal
Contact Us

Want expert advice or a demo?

Get in touch now and see how we can help your business grow.

  • Name
  • Email Address
  • Phone Number

Understanding Your Challenges

Our strong understanding of CRM and emerging technologies within the Microsoft environment means we deliver the right solutions for you.

Proven Real-World Solutions

As a leader in the field of Dynamics solutions, our pedigree developing and delivering real-world solutions is unsurpassed.

Long Term Support

We provide support beyond our design, implementation and 'go-live' delivery using Sprints and continual updates to our AppSource apps.

CRMCS | Design by Thinktank Marketing | Citrus-Lime Limited

To improve your experience today and in the future, this site uses cookies. Read our full Privacy Policy & Cookie information here I Understand