{"id":289,"date":"2022-01-18T10:58:25","date_gmt":"2022-01-18T10:58:25","guid":{"rendered":"https:\/\/blog.citrus-lime.com\/crmc\/?p=289"},"modified":"2022-01-18T10:58:26","modified_gmt":"2022-01-18T10:58:26","slug":"dynamics-for-sales-use-word-templates-to-export-directly-to-pdf-2","status":"publish","type":"post","link":"https:\/\/blog.citrus-lime.com\/crmc\/dynamics-for-sales-use-word-templates-to-export-directly-to-pdf-2\/","title":{"rendered":"Dynamics for Sales: Use Word Templates to Export directly to PDF"},"content":{"rendered":"\n<p>One new feature with Dynamics for Sales is the ability to export a Word Template directly into PDF.<\/p>\n\n\n\n<p>As a new feature, this needs to be enabled and this can be done via the Dynamics for Sales App and going into Settings within this App.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/clip_image001_2A3582DA.jpg\"><img decoding=\"async\" src=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/clip_image001_thumb_5ED5DF15.jpg\" alt=\"clip_image001\" title=\"clip_image001\" \/><\/a><\/figure>\n\n\n\n<p><strong>NOTE:<\/strong>&nbsp;This works in the same way as the 1st Party Marketing App but (to crusty long timers with Dynamics) can be a bit tricky to find as its slightly non-standard.<\/p>\n\n\n\n<p>Once done, this allows us to enable a new option for Entities to export any Template directly into PDF \u2013 but you do need to enable this Entity by Entity:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/clip_image002_1E9FC59B.jpg\"><img decoding=\"async\" src=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/clip_image002_thumb_0C56FED9.jpg\" alt=\"clip_image002\" title=\"clip_image002\" \/><\/a><\/figure>\n\n\n\n<p>So if I enable this for Sales Order and Report here (PJV) \u2013 this will then add a \u2018Export to PDF\u2019 button to that Entity Form:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/image_7A0E3816.png\"><img decoding=\"async\" src=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/image_thumb_19BD11DF.png\" alt=\"image\" title=\"image\" \/><\/a><\/figure>\n\n\n\n<p>This gives a nice preview to generate the new document as a PDF:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/clip_image004_07744B1D.jpg\"><img decoding=\"async\" src=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/clip_image004_thumb_2318D713.jpg\" alt=\"clip_image004\" title=\"clip_image004\" \/><\/a><\/figure>\n\n\n\n<p>By default \u2013 this will do the ordinary in creating the PDF and adding to the Record as a new Note with the File Attached.<\/p>\n\n\n\n<p>If we are using DocDrive365 or a similar push-to-sharepoint feature \u2013 then the Note Attachment will be scooped and added to the SharePoint Location for this Record.<\/p>\n\n\n\n<p>So in our example here, this will go into the Files section for that Sales Order:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/clip_image005_10D01051.jpg\"><img decoding=\"async\" src=\"https:\/\/license.citruslime.com\/cs\/blogs\/crmcs\/clip_image005_thumb_6995C71B.jpg\" alt=\"clip_image005\" title=\"clip_image005\" \/><\/a><\/figure>\n\n\n\n<p>This keeps the PDF we have generated in our structured way of working with Documents and avoids any requirement to have to download the file and end up storing documents outside the way we want to store documents.<\/p>\n\n\n\n<p>Its a great feature for Dynamics for Sales, as often we want Documents straight into PDF and not going via Word formats \u2013 the key here is knowing that:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Currently this is just for Dynamics for Sales Professional and Enterprise \u2013 and unfortunately not available for standalone Power Apps<\/li><li>As a Feature, it needs enabling before we can put to use.<\/li><li>New PDFs go into Notes or SharePoint depending on our setup.<\/li><\/ul>\n\n\n\n<p>Otherwise \u2013 happy PDFs over DOCX where we need it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One new feature with Dynamics for Sales is the ability to export a Word Template directly into PDF. As a new feature, this needs to be enabled and this can be done via the Dynamics for Sales App and going into Settings within this App. NOTE:&nbsp;This works in the same way as the 1st Party<\/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-289","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\/289","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=289"}],"version-history":[{"count":1,"href":"https:\/\/blog.citrus-lime.com\/crmc\/wp-json\/wp\/v2\/posts\/289\/revisions"}],"predecessor-version":[{"id":290,"href":"https:\/\/blog.citrus-lime.com\/crmc\/wp-json\/wp\/v2\/posts\/289\/revisions\/290"}],"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=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.citrus-lime.com\/crmc\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.citrus-lime.com\/crmc\/wp-json\/wp\/v2\/tags?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}