{"id":291,"date":"2022-01-18T10:59:57","date_gmt":"2022-01-18T10:59:57","guid":{"rendered":"https:\/\/blog.citrus-lime.com\/crmc\/?p=291"},"modified":"2022-01-18T10:59:57","modified_gmt":"2022-01-18T10:59:57","slug":"newly-generated-documents-in-dynamics-or-power-apps-do-not-save-into-sharepoint","status":"publish","type":"post","link":"https:\/\/blog.citrus-lime.com\/crmc\/newly-generated-documents-in-dynamics-or-power-apps-do-not-save-into-sharepoint\/","title":{"rendered":"Newly Generated Documents in Dynamics or Power Apps do not save into SharePoint"},"content":{"rendered":"\n<p>We can generate new Word Documents or PDFs from Dynamics 365 or Power Apps.<\/p>\n\n\n\n<p>However the default behavior of this functionality is either to download the newly generated file or save into the Notes of Dynamics.<\/p>\n\n\n\n<p>DocDrive improves this functionality by offering the option to automatically save any generated documents or reports directly into the SharePoint Location for the Record.<\/p>\n\n\n\n<p>This can improve Compliance as keeps each new Document in our Security Envelope and avoiding direct downloads \u2013 and keeps important documents from being lost in Notes.<\/p>\n\n\n\n<p>The DocDrive Panel also enables this functionality to be accessed directly from the list of SharePoint Documents in Dynamics via the&nbsp;<strong>GENERATE<\/strong>&nbsp;button in the Panel.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/image_68C0895A.png\"><img decoding=\"async\" src=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/image_thumb_2B332B91.png\" alt=\"image\" title=\"image\" \/><\/a><\/figure>\n\n\n\n<p>This Generate and Save into SharePoint functionality can be enabled Entity by Entity within DocDrive.<\/p>\n\n\n\n<p>If this is not Enabled \u2013 but we do have the DocDrive Panel in action \u2013 this can go a bit astray where we generate the Documents but this never shows in the Panel, giving us the appearance of:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/image_560B8FA3.png\"><img decoding=\"async\" src=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/image_thumb_43C2C8E1.png\" alt=\"image\" title=\"image\" \/><\/a><\/figure>\n\n\n\n<p>To fix this \u2013 we need to enable the option in DocDrive to move new Note Attachments into SharePoint.<\/p>\n\n\n\n<p>Fortunately this is quite quick and simple to do.<\/p>\n\n\n\n<p>First off, we fire up the DocDrive App in Dynamics and look at our configuration:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/image_187E31DA.png\"><img decoding=\"async\" src=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/image_thumb_7143E8A4.png\" alt=\"image\" title=\"image\" \/><\/a><\/figure>\n\n\n\n<p>This will open the DocDrive365 App and show areas for how we configure SharePoint to work alongside Dynamics.<\/p>\n\n\n\n<p>In the App is an area for Entities \u2013 this gives the list of Dynamics Entities or Tables that are configured to integrate with SharePoint.<\/p>\n\n\n\n<p>We can open the intended Entity Definition in question by double-clicking to drill down into the full screen:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/image_0CE8749B.png\"><img decoding=\"async\" src=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/image_thumb_7A9FADD8.png\" alt=\"image\" title=\"image\" \/><\/a><\/figure>\n\n\n\n<p>In these Settings is the series of YES or NO options for Core Actions.<\/p>\n\n\n\n<p>Scrolling down slightly will show a Setting for \u2018Note Attachments to SharePoint\u2019 \u2013 if we change this from NO to YES, this will then configure DocDrive to \u2018scoop up\u2019 any Files uploaded to Notes in Dynamics and place these in SharePoint.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/image_6856E716.png\"><img decoding=\"async\" src=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/image_thumb_7A337AE3.png\" alt=\"image\" title=\"image\" \/><\/a><\/figure>\n\n\n\n<p>Why does this matter?&nbsp; It is crucial when Dynamics generates a new Word or PDF Document through its native tools \u2013 as the default is for Dynamics to produce and save these files into the Notes attached for that Record. (as Dynamics does not natively integrate with SharePoint in this regard)<\/p>\n\n\n\n<p>DocDrive takes these File Attachment Notes on Creation and instead saves the Files into SharePoint \u2013 but only if this Setting is set to YES to activate this functionality.<\/p>\n\n\n\n<p>With this Setting set to YES, any Documents Generated by Dynamics (either from our DocDrive Panel or the Command Bar Buttons in Dynamics) for this Entity\/Table will be automatically saved into SharePoint instead of sitting in the Notes area of Dynamics.<\/p>\n\n\n\n<p>This can often be a better way as brings the generated documented into our structured DMS System between Dynamics and SharePoint.<\/p>\n\n\n\n<p>This also works great with the Dynamics for Sales functionality to Export into PDF for a Word Template \u2013 more information on which can be found here:&nbsp;<a href=\"https:\/\/www.crmcs.co.uk\/docdrive365\/docdrive365-articles\/content\/dynamics-for-sales-use-word-templates-to-export-directly-to-pdf.aspx\" target=\"_blank\" rel=\"noreferrer noopener\">Dynamics for Sales: Use Word Templates to Export directly to PDF<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We can generate new Word Documents or PDFs from Dynamics 365 or Power Apps. However the default behavior of this functionality is either to download the newly generated file or save into the Notes of Dynamics. DocDrive improves this functionality by offering the option to automatically save any generated documents or reports directly into the<\/p>\n","protected":false},"author":43,"featured_media":88,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"footnotes":""},"categories":[4],"tags":[],"class_list":{"0":"post-291","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-docdrive365"},"featured_image_src":"https:\/\/blog.citrus-lime.com\/crmc\/wp-content\/uploads\/sites\/30\/2021\/12\/DocDriveSiteimageclouds-scaled.jpg","author_info":{"display_name":"jadesmith","author_link":"https:\/\/blog.citrus-lime.com\/crmc\/author\/jadesmith\/"},"_links":{"self":[{"href":"https:\/\/blog.citrus-lime.com\/crmc\/wp-json\/wp\/v2\/posts\/291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.citrus-lime.com\/crmc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.citrus-lime.com\/crmc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.citrus-lime.com\/crmc\/wp-json\/wp\/v2\/users\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.citrus-lime.com\/crmc\/wp-json\/wp\/v2\/comments?post=291"}],"version-history":[{"count":1,"href":"https:\/\/blog.citrus-lime.com\/crmc\/wp-json\/wp\/v2\/posts\/291\/revisions"}],"predecessor-version":[{"id":292,"href":"https:\/\/blog.citrus-lime.com\/crmc\/wp-json\/wp\/v2\/posts\/291\/revisions\/292"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.citrus-lime.com\/crmc\/wp-json\/wp\/v2\/media\/88"}],"wp:attachment":[{"href":"https:\/\/blog.citrus-lime.com\/crmc\/wp-json\/wp\/v2\/media?parent=291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.citrus-lime.com\/crmc\/wp-json\/wp\/v2\/categories?post=291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.citrus-lime.com\/crmc\/wp-json\/wp\/v2\/tags?post=291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}