News.mscrm-addons.com BlogHello and welcome to our blog! What can we do for you? Are you looking for further technical information or step-by-step instructions to our products? Or would you like to read the latest news on mscrm-addons? Please feel free to browse our blog for detailed information and to share our posts! https://www.mscrm-addons.com/BlogHow to shorten an alias (Alias is longer than 128 characters)https://www.mscrm-addons.com/Blog/PostId/10148/how-to-shorten-an-alias-alias-is-longer-than-128-characters*General*,DCP 2016,DocumentsCorePack (DCP)Fri, 24 Aug 2018 08:51:44 GMT<p style="text-align: justify;">This article outlines how to shorten an alias in DocumentsCorePack-TemplateDesigner when&nbsp;an error message appears that says: "<span style="font-size: inherit; font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-weight: inherit; font-family: inherit;">Alias is longer than 128 characters"</span></p> <p style="text-align: justify;">Should you get an error that your alias is longer than 128 characters, please do the following steps.<br /> Please note that the 128 character limitation is not from our side but is a standard limitation from CRM.</p> <p style="text-align: justify;">Open your relationships by editing them using the pencil symbol and navigate to <g class="gr_ gr_24 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="24" data-gr-id="24">fetchXML</g>:</p> <div class=" data-plugin-options="> <div class="lightbox" data-plugin-options="{'delegate': 'a', 'type': 'image', 'gallery': {'enabled': false}}"> <a title=" configure relationship" href="/Portals/0/Blog/How_to_shorten_an_alias/Figure1.png"> <img alt=" configure relationship " width="40%" class="img-responsive" src="/Portals/0/Blog/How_to_shorten_an_alias/Figure1.png" /> </a> </div> <div class="lightbox" data-plugin-options="{'delegate': 'a', 'type': 'image', 'gallery': {'enabled': false}}"> <em>Figure 1: Configure the relationship </em> </div> </div> <p>&nbsp;</p> <p><span>In the FetchXML View search for the long alias names that need to be shortened due to the character limitation from Dynamics 365:</span></p> <div class=" data-plugin-options="> <div class="lightbox" data-plugin-options="{'delegate': 'a', 'type': 'image', 'gallery': {'enabled': false}}"> <a title=" FetchXML View " href="/Portals/0/Blog/How_to_shorten_an_alias/Figure2.png"> <img alt=" FetchXML View " width="40%" class="img-responsive" src="/Portals/0/Blog/How_to_shorten_an_alias/Figure2.png" /> </a> </div> <div class="lightbox" data-plugin-options="{'delegate': 'a', 'type': 'image', 'gallery': {'enabled': false}}"> <em>Figure 2: FetchXML View </em> </div> </div> <p>&nbsp;</p> <p><span>Give it a short, descriptive name, only change the alias tag:</span></p> <div class=" data-plugin-options="> <div class="lightbox" data-plugin-options="{'delegate': 'a', 'type': 'image', 'gallery': {'enabled': false}}"> <a title=" changed FetchXML View " href="/Portals/0/Blog/How_to_shorten_an_alias/Figure3.png"> <img alt=" changed FetchXML View " width="40%" class="img-responsive" src="/Portals/0/Blog/How_to_shorten_an_alias/Figure3.png" /> </a> </div> <div class="lightbox" data-plugin-options="{'delegate': 'a', 'type': 'image', 'gallery': {'enabled': false}}"> <em>Figure 3: changed FetchXML View</em></div> </div> <p>&nbsp;</p> <p><span>Switch back to the Designer View and click OK.</span></p> <div class=" data-plugin-options="> <div class="lightbox" data-plugin-options="{'delegate': 'a', 'type': 'image', 'gallery': {'enabled': false}}"> <a title=" Designer View " href="/Portals/0/Blog/How_to_shorten_an_alias/Figure4.png"> <img alt=" Designer View " width="40%" class="img-responsive" src="/Portals/0/Blog/How_to_shorten_an_alias/Figure4.png" /> </a> </div> <div class="lightbox" data-plugin-options="{'delegate': 'a', 'type': 'image', 'gallery': {'enabled': false}}"> <em>Figure 4: Designer View </em> </div> </div> <p>&nbsp;</p> <p style="margin-bottom: 0.0001pt;"><span style="color: #777777;">Afterward,&nbsp;it is necessary to reinsert all fields from that relationship.</span></p> <p>&nbsp;</p> <p><span style="font-size: 13px;"><strong><span>That&rsquo;s it!</span></strong><span style="background: white;">&nbsp;We appreciate your feedback! Please share your thoughts by sending an email to<span style="color: #777777;">&nbsp;</span><span style="padding: 0cm; border: 1pt none windowtext; color: #0077b3;"><a href="mailto:support@mscrm-addons.com">support@mscrm-addons.com</a>.</span></span></span></p> <p>&nbsp;</p>10148SharePoint path limitation avoidance for AttachmentExtractorhttps://www.mscrm-addons.com/Blog/PostId/10049/sharepoint-path-limitation-avoidance-for-attachmentextractorAttachmentExtractor (AE),AE 2015 / 2016,AE 365Wed, 28 Mar 2018 14:03:14 GMT<p><span style="background-color: #fcfcfc;">SharePoint paths limitations are hard coded. The maximum path length is 260 characters. If that limit is exceeded, you get the SharePoint error 414.&nbsp;This article outlines how to avoid this error.&nbsp;</span></p> <p><span style="color: #ff0000;"><strong><span style="color: #4f81bd;">Minimum requirements:</span></strong> <span style="color: #777777;">AttachmentExtractor v.124 or higher&nbsp;</span></span></p> <p><span style="background-color: #fcfcfc; color: #777777;">&nbsp;mscrm-addons products offer several default ways to shorten SharePoint paths:</span></p> <p><span style="background-color: #fcfcfc; color: #777777;">1) We provide you with a</span><span class="apple-converted-space" style="background-color: #fcfcfc; color: #777777;">&nbsp;</span><span style="background-color: #fcfcfc; color: #777777;"><strong>default shortening to a maximum of 30 characters + GUID for each folder name</strong></span><span style="background-color: #fcfcfc; color: #777777;">.</span><span class="apple-converted-space" style="background-color: #fcfcfc; color: #777777;">&nbsp;<br /> </span><span style="background-color: #fcfcfc; color: #777777;">2) We provide you with a&nbsp;</span><span style="background-color: #fcfcfc; color: #777777;"><strong>default shortening to a maximum of 128 characters for each file name</strong></span><span style="background-color: #fcfcfc; color: #777777;">.&nbsp;<br /> </span><span style="background-color: #fcfcfc; color: #777777;">3) ShortIDs: We create a</span><span class="apple-converted-space" style="background-color: #fcfcfc; color: #777777;">&nbsp;</span><span style="background-color: #fcfcfc; color: #777777;"><strong>6-characters ID alternatively to the well-known 36 GUIDs</strong></span><span class="apple-converted-space" style="background-color: #fcfcfc; color: #777777;">&nbsp;</span><span style="background-color: #fcfcfc; color: #777777;">of Microsoft Dynamics 365.</span><span class="apple-converted-space" style="background-color: #fcfcfc; color: #777777;">&nbsp;&nbsp;<br /> </span><span style="background-color: #fcfcfc; color: #777777;">4) Use an alternative field for the generation of paths (e.g. instead of account name we can use a unique account number field).</span></p> <p><span style="background-color: #fcfcfc; color: #4f81bd;"><strong>Please note:</strong>&nbsp;</span><span style="background-color: #fcfcfc; color: #777777;">Even though the creation of short paths is a very valuable feature, existing paths cannot be shortened anymore, unless very specific criteria are met. Manual interaction is always required.</span></p> <p style="background: #fcfcfc; margin: 0cm 0cm 0.0001pt;"><span style="border: 1pt none windowtext; padding: 0cm;">&nbsp;</span></p> <p style="background: #fcfcfc; margin: 0cm 0cm 0.0001pt;"><span style="border: 1pt none windowtext; padding: 0cm;"><strong><span style="color: #4f81bd;">How to activate a ShortID for AttachmentExtractor</span></strong></span></p> <p style="background: #fcfcfc; margin: 0cm 0cm 0.0001pt;">1) First, you must activate ShortID for AttachmentExtractor. To do so, please follow the below path in order to get to the ShortID settings.&nbsp;<br /> <br /> <span style="color: #ff0000;"><span style="color: #4f81bd;"><strong>Please note:</strong></span>&nbsp; <span style="color: #777777;">You must replace <strong>[YourServiceName] </strong>with your individual service name:&nbsp;</span></span><br /> &nbsp;</p> <p style="background-color: #fcfcfc;">HKEY_LOCAL_MACHINE\SOFTWARE\PTM EDV-Systeme\AttachmentExtractorserver\Configurations\[YourServiceName]</p> <p style="background: #fcfcfc; margin: 0cm 0cm 0.0001pt;">2) Next, set UseShortID to true.</p> <p style="background: #fcfcfc; margin: 0cm 0cm 0.0001pt;">&nbsp;</p> <p style="background: #fcfcfc; margin: 0cm 0cm 0.0001pt;">3) To define the cutting, you will have to create a new <g class="gr_ gr_54 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="54" data-gr-id="54">settingskey</g>. If you have not created a <g class="gr_ gr_55 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="55" data-gr-id="55">settingskey</g> yet, please have a look at&nbsp;<a href="http://www.mscrm-addons.com/LinkClick.aspx?link=%2fBlog%2fPostId%2f9754%2fhow-to-create-a-settingskey-manually-in-ms-dynamics-crm-2013-crm-2015&amp;tabid=165&amp;portalid=0&amp;mid=2185">this article</a>.&nbsp;<br /> <br /> </p> <p style="background: #fcfcfc; margin: 0cm 0cm 0.0001pt;">Depending on which item you would like to customize, please enter the following settings:&nbsp;<br /> <br /> For the <strong>maximum SharePoint folder name length</strong>:&nbsp;<br /> SPMaxFolderLength: [number of characters that should remain]</p> <p style="background: #fcfcfc; margin: 0cm 0cm 0.0001pt;">&nbsp;</p> <p style="background: #fcfcfc; margin: 0cm 0cm 0.0001pt;">For the <strong>maximum SharePoint file name length</strong>:<br /> SPMaxFileLength: [number of characters that should remain]</p> <p style="background: #fcfcfc; margin: 0cm 0cm 0.0001pt;">&nbsp;</p> <p style="background: #fcfcfc; margin: 0cm 0cm 0.0001pt;">For the <strong>minimum SharePoint file name length</strong>:</p> <p style="background: #fcfcfc; margin: 0cm 0cm 0.0001pt;">SPMinFileLength: [minimum number of characters that should remain]<br /> <br /> <span style="color: #777777;"><strong><span style="color: #4f81bd;">Please note: </span></strong>The file extension is never cut!&nbsp;</span></p> <p style="background: #fcfcfc; margin: 0cm 0cm 0.0001pt;">&nbsp;&nbsp;</p> <p style="background-color: #fcfcfc; margin: 0cm 0cm 0.0001pt;">For the <strong>SharePoint folder name attribute</strong>:</p> <p style="background-color: #fcfcfc; margin: 0cm 0cm 0.0001pt;">SPFolderNameAttribute: enittyschemaname;attributename|</p> <p><span style="background-color: #fcfcfc; color: #000000;"><br /> </span></p> <p><span style="color: #000000;"> </span></p> <p style="background: #fcfcfc; margin: 0cm 0cm 0.0001pt;">For further information on how to correct SharePoint paths exceeding the limitations, please have a look at<a href="http://www.mscrm-addons.com/LinkClick.aspx?link=%2fBlog%2fPostId%2f10012%2fhow-to-change-the-sharepoint-path-logic-advanced&amp;tabid=165&amp;portalid=0&amp;mid=2185">&nbsp;this blog article</a>.&nbsp;<br /> <br /> </p> <p style="background-color: #fcfcfc;"><span style="font-size: 13px;"><strong>That's it!</strong>&nbsp;We appreciate your feedback! Please share your thoughts by sending an email to&nbsp;<a href="mailto:support@mscrm-addons.com" class="ApplyClass">support@mscrm-addons.com</a>!</span></p> <div>&nbsp;</div>10049SharePoint path limitation avoidance for DocumentsCorePackhttps://www.mscrm-addons.com/Blog/PostId/10050/sharepoint-path-limitation-avoidance-for-documentscorepackDocumentsCorePack (DCP),DCP 2015 / 2016,DCP 365,DocumentsCorePack 2015/2016Wed, 29 Nov 2017 13:14:06 GMT<p><span style="background-color: #fcfcfc;">SharePoint paths limitations are hard coded. The maximum path length is 260 characters. If that limit is exceeded, you get the SharePoint error 414.&nbsp;This article outlines how to avoid this error.&nbsp;</span></p> <p><span style="background-color: #fcfcfc; color: #4f81bd;">Minimum requirements:</span><span style="background-color: #fcfcfc; color: #ff0000;">&nbsp;</span><span style="background-color: #fcfcfc;">DocumentsCorePack v.167or higher&nbsp;</span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;">mscrm-addons products offer several default ways to shorten SharePoint paths:</p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span style="padding: 0cm; border: 1pt none windowtext;"><br /> 1) We provide you with a<span class="apple-converted-space">&nbsp;</span><strong>default shortening to a maximum of 30 characters + GUID for each folder name</strong>.<span class="apple-converted-space">&nbsp;</span></span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;">SharePoint folder maximum length:</p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span class="apple-converted-space" style="padding: 0cm; border: 1pt none windowtext; background-color: #fcfcfc;">This setting cuts SharePoint folder names that are longer than a certain amount of characters.&nbsp;<br /> <br /> </span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span class="apple-converted-space" style="padding: 0cm; border: 1pt none windowtext; background-color: #fcfcfc;"> </span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span class="apple-converted-space" style="padding: 0cm; border: 1pt none windowtext; background-color: #fcfcfc;"> </span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span class="apple-converted-space" style="padding: 0cm; border: 1pt none windowtext; background-color: #fcfcfc;"> </span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span class="apple-converted-space" style="padding: 0cm; border: 1pt none windowtext; background-color: #fcfcfc;"> </span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span class="apple-converted-space" style="padding: 0cm; border: 1pt none windowtext;"> </span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span style="padding: 0cm; border: 1pt none windowtext;">2) We provide you with a&nbsp;<strong>default shortening to a maximum of 128 characters for each file name</strong>.&nbsp;</span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span style="padding: 0cm; border: 1pt none windowtext;"><br /> 3) ShortIDs: We create a<span class="apple-converted-space">&nbsp;</span><strong>6-characters ID alternatively to the well-known 36 GUIDs</strong><span class="apple-converted-space"><strong>&nbsp;</strong></span>of Microsoft Dynamics 365.<span class="apple-converted-space">&nbsp;&nbsp;</span></span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span style="padding: 0cm; border: 1pt none windowtext;" class="apple-converted-space">&nbsp;</span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span style="padding: 0cm; border: 1pt none windowtext;" class="apple-converted-space">It is recommended to activate ShortId to avoid&nbsp;<span style="background-color: #fcfcfc;">the SharePoint error 414 you get because of the&nbsp;<span style="background-color: #fcfcfc;">path limitations of 260 characters. With ShortId we create a 6-characters ID instead of the 36 GUID like you can see in the example below.&nbsp;</span></span></span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span style="padding: 0cm; border: 1pt none windowtext;" class="apple-converted-space">&nbsp;</span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span style="padding: 0cm; border: 1pt none windowtext;" class="apple-converted-space"> </span></p> <div data-plugin-options="{'delegate': 'a', 'type': 'image', 'gallery': {'enabled': false}}" class="lightbox"><span style="padding: 0cm; border: 1pt none windowtext;" class="apple-converted-space"><a href="http://mscrm-addons.com/portals/0/Blog/ShortID%20DCP//Figure1_ShortID.png" title=" Example for ShortId"><img src="http://mscrm-addons.com/portals/0/Blog/ShortID%20DCP/Figure1_ShortID.png" alt=" Example for ShortId" width="672" height="85" /></a></span></div> <span style="padding: 0cm; border: 1pt none windowtext;" class="apple-converted-space"> <div data-plugin-options="{'delegate': 'a', 'type': 'image', 'gallery': {'enabled': false}}" class="lightbox">Figure 1: Example for ShortId</div> </span> <p data-plugin-options="{'delegate': 'a', 'type': 'image', 'gallery': {'enabled': false}}" class="lightbox">​</p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span style="color: #4f81bd;"><strong>How to activate a ShortID for DocumentsCorePack</strong></span></p> <p style="background-color: #fcfcfc; margin: 0cm 0cm 0pt;">To create a ShortID for DocumenstCorePack simply navigate to Settings &gt; DocumentsCorePack in your Microsoft Dynamics 365&nbsp; application.</p> <p style="background-color: #fcfcfc; margin: 0cm 0cm 0pt;">&nbsp;&nbsp;</p> <p style="background-color: #fcfcfc; margin: 0cm 0cm 0pt;">Here, please add/enable the following options:&nbsp;</p> <p style="background-color: #fcfcfc; margin: 0cm 0cm 0pt;"><strong>Use short Documentation Logic</strong></p> <p style="background-color: #fcfcfc; margin: 0cm 0cm 0pt;"><strong></strong><br /> The setting in&nbsp;the figure below cuts SharePoint path automatically.&nbsp;</p> <p style="background-color: #fcfcfc; margin: 0cm 0cm 0pt;">&nbsp;</p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span class="apple-converted-space" style="padding: 0cm; border: 1pt none windowtext;"></span></p> <div class="data-plugin-options="> <div data-plugin-options="{'delegate': 'a', 'type': 'image', 'gallery': {'enabled': false}}" class="lightbox"><span class="apple-converted-space" style="padding: 0cm; border: 1pt none windowtext;"><a href="http://mscrm-addons.com/portals/0/Blog/ShortID%20DCP//Short_ID_DCP.jpg" title="DocumentsCorePack settings"><img style="height: 265px; width: 474px;" src="http://mscrm-addons.com/portals/0/Blog/ShortID%20DCP//Short_ID_DCP.jpg" alt="DocumentsCorePack settings" /></a></span></div> <div data-plugin-options="{'delegate': 'a', 'type': 'image', 'gallery': {'enabled': false}}" class="lightbox"><span class="apple-converted-space" style="padding: 0cm; border: 1pt none windowtext;">Figure 2: DocumentsCorePack settings</span> <p style="background: #fcfcfc; margin: 0cm 0cm 0.0001pt;">&nbsp;</p> </div> </div> <p><span style="padding: 0cm; border: 1pt none windowtext;"> 4) Use an alternative field for the generation of paths (e.g. instead of account name we can use a unique account number field)</span></p> <p style="background-color: #fcfcfc; margin: 0cm 0cm 0.0001pt;">For the&nbsp;<span><strong>SharePoint folder name attribute</strong></span>:</p> <p style="background-color: #fcfcfc; margin: 0cm 0cm 0.0001pt;">SPFolderNameAttribute: <g class="gr_ gr_46 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="46" data-gr-id="46">enittyschemaname</g>;attributename|</p> <p style="background-color: #fcfcfc; margin: 0cm 0cm 0.0001pt;">e.g.: Account:ptm_name</p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span style="padding: 0cm; border: 1pt none windowtext;">&nbsp;&nbsp;</span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span style="padding: 0cm; border: 1pt none windowtext;"><span style="background-color: #fcfcfc; color: #4f81bd;"><strong>Please note:</strong>&nbsp;</span><span style="background-color: #fcfcfc;">Even though the creation of short paths is a very valuable feature, existing paths cannot be shortened anymore, unless very specific criteria are met. Manual interaction is always required.</span></span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;"><span style="padding: 0cm; border: 1pt none windowtext; background-color: #fcfcfc;">&nbsp;</span></p> <p style="background: none 0% 0% repeat scroll #fcfcfc; margin: 0cm 0cm 0pt;">For further information on how to correct SharePoint paths exceeding the limitations, please have a look at<a href="http://www.mscrm-addons.com/LinkClick.aspx?link=%2fBlog%2fPostId%2f10012%2fhow-to-change-the-sharepoint-path-logic-advanced&amp;tabid=165&amp;portalid=0&amp;mid=2185">&nbsp;this blog article</a>.&nbsp;<br /> <br /> </p> <p style="background-color: #fcfcfc;"><span style="font-size: 13px;"><strong>That's it!</strong>&nbsp;We appreciate your feedback! Please share your thoughts by sending an email to&nbsp;<a href="mailto:support@mscrm-addons.com" class="ApplyClass">support@mscrm-addons.com</a>!</span></p> <p> </p> <div>&nbsp;</div> <p>&nbsp;</p>10050