Articles

Affichage des articles associés au libellé 2016

Decode/render HTML from a field in crm dynamics

In email entity the Hmtl is well decode. but if you want to decode it in other entity, it will not work you will just see the tag everywhere then I propose you to create a webressource and to apply this code. as you can see the field to to decode is hard coded but you can also give it as a webressource parameter. in a old post I explain how to pass value here is the html + javascript <html><head><meta></head> <body onload="onLoad()" onfocusout="parent.setEmailRange();" style="overflow-wrap: break-word;"> <script > function onLoad() { debugger; var para = document.createElement("decodedDescription"); var descriptionHtml = window.parent.Xrm.Page.getAttribute("description").getValue(); para.innerHTML = descriptionHtml; document.getElementById("decodedDescription").appendChild(para); }   </script > <div id="decodedDescription"> </div> </body></ht...

Add clickable button in the form

I do it via webressource <html><head>     <style>       * {                     margin: 0;                     padding: 0;                 }                                 .button{                     background-color: #00B3D9;                     color: #FFFFFF;                     font-family: Segoe UI, Tahoma, Arial;                     font-size: 14px;                     padding: 5px 10px 5px 10px;                   ...

Remap crm user to ActiveDirectory User

I imported an organization and I mapped only system user CRM : 2016 V8.2 OnPremise Then at the end only mapped User can connect To CRM while normal user are still visible in CRM systemUser. To see if they are mapped you can use select * from MSCRM_CONFIG.[dbo].[SystemUserOrganizations] org join SystemUserBase users on (users.SystemUserId = org.CrmUserId) then to remapp normal user I did 1/ disable user + save 2/ change the logon user (I added a s after) + Save 3/ change back the logon by the correct logon user (remove the S) 4 enable the user re do the query, select * from MSCRM_CONFIG.[dbo].[SystemUserOrganizations] org join SystemUserBase users on (users.SystemUserId = org.CrmUserId) you will see the user is mapped