<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mark on Medium]]></title>
        <description><![CDATA[Stories by Mark on Medium]]></description>
        <link>https://medium.com/@mpr83?source=rss-a3d04551f2f5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0-63620CuSrb42SYe6hiCw.jpeg</url>
            <title>Stories by Mark on Medium</title>
            <link>https://medium.com/@mpr83?source=rss-a3d04551f2f5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:43:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mpr83/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Contacts Org Chart Dynamics 365]]></title>
            <link>https://mpr83.medium.com/contacts-org-chart-dynamics-365-141d56f2d1a2?source=rss-a3d04551f2f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/141d56f2d1a2</guid>
            <category><![CDATA[org-charts]]></category>
            <category><![CDATA[preview]]></category>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[dynamics-365]]></category>
            <dc:creator><![CDATA[Mark]]></dc:creator>
            <pubDate>Wed, 28 Jun 2023 11:03:59 GMT</pubDate>
            <atom:updated>2023-06-28T11:03:59.107Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey, CRM devs! Ready for a new preview in Dynamics 365? Today, I wanted to present an exciting new feature in <strong><em>preview</em></strong>.</p><p><strong>The contact organization chart</strong></p><p>Now, we can edit the org chart of accound with new UI in drag-and-drop mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e7P-oQzERGf0tgDdiFgi1w.png" /></figure><p><strong>How to activate the preview?</strong></p><p>From the Sales Hub app in the Configuration Sitemap area, a new entry called “Organizational Chart” will appear, we activate the checkbox, and that’s it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GQfR5-p64lEeUNaCg8-s3g.png" /></figure><p><strong>How do I access the Organization Chart?</strong></p><p>For now, the scope is only for contacts with an associated account. From a contact file, the “Organizational Chart” button will appear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*h8zpxl9ltfv8MYs-WHqCIw.png" /></figure><p><strong>What can I do in the Organization Chart?</strong></p><ul><li>Add labels with the influential role of each communication.</li><li>Create a hierarchy of contacts within the account in drag-and-drop mode.</li><li>Establish upon request the primary contact of the account.</li><li>Set Assistant to Primary Account Contact</li><li>Remove a contact from the account or organization chart.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*UNZhTeBXfpQGE9Cv-TVxnQ.png" /></figure><p><strong>How to edit the tags of a connection?</strong></p><p>The schema field is called “<em>msdyn_decisioninfluencetag</em>” and more options can be added with their associated color.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*_v6EdV69gIBn88HjOuBo1g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=141d56f2d1a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Define kanban view to manage sales funnel in Dynamics 365]]></title>
            <link>https://mpr83.medium.com/define-kanban-view-to-manage-sales-funnel-in-dynamics-365-24a6e87390b2?source=rss-a3d04551f2f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/24a6e87390b2</guid>
            <category><![CDATA[dynamics-365]]></category>
            <category><![CDATA[sales-funnel-strategies]]></category>
            <dc:creator><![CDATA[Mark]]></dc:creator>
            <pubDate>Tue, 14 Feb 2023 08:32:38 GMT</pubDate>
            <atom:updated>2023-02-14T08:32:38.733Z</atom:updated>
            <content:encoded><![CDATA[<p>I would like to write a short article with the purpose that giving you a tip to improve and manage the sales funnel and help sales agents optimize their time.</p><figure><img alt="sales funnel" src="https://cdn-images-1.medium.com/max/344/0*ps1j6J0I81EllIId" /></figure><p>This graphical methodology allows sellers to optimize resources and be more effective with their management, but sometimes maintenance supposes a time salesperson that sometimes is not available.</p><p>Well, so this article and applying these tips probably help to optimize the time of a salesperson to manage your sales funnel.</p><h4>As-Is Process</h4><p>This is the out-of-the-box solution in that you have a standard view associated with the sales funnel with all stages. Probably, the problem here is that if you want to move any opportunity in the stage you must navigate to the detail opportunity and update the stage because the sales funnel is updated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ANjzowhSRNsIGCk64EWZog.png" /></figure><h4>To-Be Process</h4><p>And this is a custom solution on which you can move off the stage at every opportunity in kanban view without the necessity to navigate detailed rows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZYfzcPnuaCWxmLlXHhrUhg.png" /></figure><p>Well, now let me show how to configure this kanban view, it’s very simple.</p><p>To activate this control you have to navigate the legacy personalization tool in Dynamics 365 (not yet activated this feature in Power Platform).</p><p>Add control kanban to the properties entity and you can decide if is a mandatory view for all users or if every user selects this view on demand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lYt_Dk5pQd_RbbW6B4qSgw.png" /></figure><p>Finally, you just have to publish to see the changes reflected in the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ucfREjSAAqvd4NDUS_vz_A.png" /></figure><p>That’s all, how as you can see with a simple change you can be efficient with your task.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24a6e87390b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Could ChatGPT replace developers in Dynamics 365?]]></title>
            <link>https://mpr83.medium.com/can-ia-replace-developers-e9777878aab9?source=rss-a3d04551f2f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9777878aab9</guid>
            <category><![CDATA[dynamics-365]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Mark]]></dc:creator>
            <pubDate>Thu, 26 Jan 2023 21:34:16 GMT</pubDate>
            <atom:updated>2023-01-26T21:39:43.945Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Q-fm180xyXw_xLUyQ0BVNA.jpeg" /></figure><p>Right now ChatGPT is trending topic in socials media and I wanted to explain my personal experience after doing some PoC in my context with Dynamics 365.</p><h4>Writing a Plugin Code</h4><p>First ChatGPT explain how implement a new feature, when create a new account in Dynamics 365 send a welcome email with plugin and this is the result:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F792938022%3Fh%3D08cd871333%26app_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F792938022&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1596189147-1dab67a80d982996b0c1b00746030770795df47d998a87b729bef22a1562c167-d_1280&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1280" height="720" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8a4f473684d3ed2cd24a0f91ccb6b27/href">https://medium.com/media/f8a4f473684d3ed2cd24a0f91ccb6b27/href</a></iframe><pre>using Microsoft.Xrm.Sdk;<br>using System;<br>using System.Net;<br>using System.Net.Mail;<br><br>namespace Example.Plugins<br>{<br>    public class SendWelcomeEmail : IPlugin<br>    {<br>        public void Execute(IServiceProvider serviceProvider)<br>        {<br>            // Obtain the execution context from the service provider.<br>            IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));<br><br>            // Get the target entity from the context<br>            Entity.Account account = (Entities.Account)context.InputParameters[&quot;Target&quot;];<br><br>            // Check if the message is a create message and the target is an account<br>            if (context.MessageName.ToLower() == &quot;create&quot; &amp;&amp; context.InputParameters.Contains(&quot;Target&quot;) &amp;&amp; account != null)<br>            {<br>                // Get the email address of the account<br>                string email = account.EMailAddress1;<br><br>                // Create the mail message<br>                MailMessage mail = new MailMessage();<br>                mail.To.Add(email);<br>                mail.Subject = &quot;Welcome to our company!&quot;;<br>                mail.Body = &quot;Dear &quot; + account.Name + &quot;,\n\nWe are glad to have you as a new customer. Let us know if you have any questions or need assistance.\n\nBest,\nThe Support Team&quot;;<br><br>                // Send the email<br>                SmtpClient client = new SmtpClient();<br>                client.Send(mail);<br>            }<br>        }<br>    }<br>}</pre><h4>Aplying Clean Code</h4><p>Good approach of plugin code, but I wanted to go further and ask him if he would be able to apply clean code to the code and this is the result:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F793131312%3Fh%3Df5b99c79e0%26app_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F793131312&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1596584975-c70b408f069f8a50d6a679ec319cf117831e3b2e1f956a72feae3b5fad4a817d-d_640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="852" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9be52e29b7f24c2d56a82275059165e2/href">https://medium.com/media/9be52e29b7f24c2d56a82275059165e2/href</a></iframe><pre>using Microsoft.Xrm.Sdk;<br>using System.Net.Mail;<br><br>namespace Example.Plugins<br>{<br>    public class SendWelcomeEmail : IPlugin<br>    {<br>        private const string TARGET = &quot;Target&quot;;<br>        private const string CREATE_MESSAGE = &quot;create&quot;;<br>        private const string EMAIL_ADDRESS_FIELD = &quot;EMailAddress1&quot;;<br>        private const string ACCOUNT_NAME_FIELD = &quot;Name&quot;;<br>        private const string SUBJECT = &quot;Welcome to our company!&quot;;<br>        private const string BODY_FORMAT = &quot;Dear {0},\n\nWe are glad to have you as a new customer. Let us know if you have any questions or need assistance.\n\nBest,\nThe Support Team&quot;;<br><br>        public void Execute(IServiceProvider serviceProvider)<br>        {<br>            var context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));<br><br>            if (context.MessageName.ToLower() != CREATE_MESSAGE || !context.InputParameters.Contains(TARGET))<br>                return;<br><br>            var account = context.InputParameters[TARGET] as Entities.Account;<br>            if (account == null)<br>                return;<br><br>            var email = account.GetAttributeValue&lt;string&gt;(EMAIL_ADDRESS_FIELD);<br>            var accountName = account.GetAttributeValue&lt;string&gt;(ACCOUNT_NAME_FIELD);<br><br>            var mail = new MailMessage<br>            {<br>                To = { email },<br>                Subject = SUBJECT,<br>                Body = string.Format(BODY_FORMAT, accountName)<br>            };<br><br>            using (var client = new SmtpClient())<br>                client.Send(mail);<br>        }<br>    }<br>}</pre><p><strong>Unit Testing</strong></p><p>And finally, the last challenge was to see if Chat GPT could implement a unit test on the plugin, I was hoping if it knew the FakeXrmEasy library but it hasn’t been like that… <a href="https://medium.com/u/ff7977993fa8">Jordi Montana</a> you should promote your library to OpenAI and Elon Musk 😃 (on the second try yes it did)</p><pre>using Microsoft.Xrm.Sdk;<br>using Microsoft.Xrm.Sdk.Fakes;<br>using Microsoft.Xrm.Sdk.Query;<br>using MyPlugins;<br>using System;<br>using System.Linq;<br>using Xunit;<br><br>namespace MyPlugins.Tests<br>{<br>    public class SendWelcomeEmailTests<br>    {<br>        [Fact]<br>        public void Execute_Should_Not_Send_Email_When_Target_Is_Not_Account()<br>        {<br>            // Arrange<br>            var serviceProvider = new StubIServiceProvider()<br>            {<br>                GetServiceType = t =&gt;<br>                {<br>                    if (t == typeof(IPluginExecutionContext))<br>                    {<br>                        var context = new StubIPluginExecutionContext<br>                        {<br>                            InputParametersGet = () =&gt; new ParameterCollection<br>                            {<br>                                { &quot;Target&quot;, new Entity.Contact() }<br>                            }<br>                        };<br><br>                        return context;<br>                    }<br><br>                    return null;<br>                }<br>            };<br><br>            var plugin = new SendWelcomeEmail();<br><br>            // Act<br>            plugin.Execute(serviceProvider);<br><br>            // Assert<br>            // (Add assertions here to check that the email was not sent)<br>        }<br><br>        [Fact]<br>        public void Execute_Should_Not_Send_Email_When_Primary_Contact_Email_Is_Null()<br>        {<br>            // Arrange<br>            var serviceProvider = new StubIServiceProvider()<br>            {<br>                GetServiceType = t =&gt;<br>                {<br>                    if (t == typeof(IPluginExecutionContext))<br>                    {<br>                        var context = new StubIPluginExecutionContext<br>                        {<br>                            InputParametersGet = () =&gt; new ParameterCollection<br>                            {<br>                                { &quot;Target&quot;, new Entities.Account() }<br>                            },<br>                            UserIdGet = () =&gt; Guid.NewGuid()<br>                        };<br><br>                        return context;<br>                    }<br>                    else if (t == typeof(IOrganizationServiceFactory))<br>                    {<br>                        var serviceFactory = new StubIOrganizationServiceFactory<br>                        {<br>                            CreateOrganizationServiceGuid = (userId) =&gt;<br>                            {<br>                                var service = new StubIOrganizationService()<br>                                {<br>                                    RetrieveStringColumnSet = (entityName, id, columnSet) =&gt;<br>                                    {<br>                                        if (entityName == &quot;contact&quot;)<br>                                        {<br>                                            return new Entity.Contact();<br>                                        }<br><br>                                        return null;<br>                                    }<br>                                };<br><br>                                return service;<br>                            }<br>                        };<br><br>                        return serviceFactory;<br>                    }<br><br>                    return null;<br>                }<br>            };<br><br>            var plugin = new SendWelcomeEmail();<br><br>            // Act<br>            plugin.Execute(serviceProvider);<br><br>            // Assert<br>            // (Add assertions here to check that the email was not sent)<br>        }</pre><p>I leave you the reflection if Chat GPT could replace the developers or could it be a copilot? 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9777878aab9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How delete disabled users in Dynamics 365 (New Preview)]]></title>
            <link>https://mpr83.medium.com/how-delete-disabled-users-in-dynamics-365-new-preview-5c4c6818480d?source=rss-a3d04551f2f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c4c6818480d</guid>
            <category><![CDATA[dynamics-365]]></category>
            <category><![CDATA[preview]]></category>
            <category><![CDATA[dynamics-365-crm]]></category>
            <dc:creator><![CDATA[Mark]]></dc:creator>
            <pubDate>Wed, 28 Dec 2022 22:06:44 GMT</pubDate>
            <atom:updated>2022-12-28T22:06:44.843Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y5j5EVJMd9UwLxZWKX_olg.jpeg" /></figure><p>In this new article I would like to show you this new preview in Dynamics 365.</p><p>How many times have you proposed to delete disabled users, stub users or deprecated application users? Right now is possible with this preview.</p><p><strong>Step 1: Activate preview in specific environment</strong></p><p>In Admin Platform, select the environment and then navigate to <strong><em>Settings -&gt; Features</em></strong> and look for the below setting and enable it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*MbK025w2NJDrzza__yNkHw.png" /></figure><p>Make sure to save the settings. Once done the next step is to <strong><em>Soft Delete</em></strong> User in the Power Platform. Remember without <em>Soft Deleting</em> a user, you won’t be able to delete it permanently.</p><p><strong>Step 2: Soft Delete User</strong></p><p>Navigate to <strong><em>Environement -&gt; Settings -&gt; Users </em></strong>and apply the next filter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*aT_zQwi2aPFqs8utXqKeUg.png" /><figcaption>Users not in AAD but exist in the environment</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NVEdbahb0pIruouDVLP8SA.png" /><figcaption>Delete specific user</figcaption></figure><p><em>In this step there isn’t any blocker to mark user with soft delete.</em></p><p><strong>Step 3: Hard Delete User</strong></p><p>Navigate to <strong><em>Environement -&gt; Settings -&gt; Users </em></strong>and apply the next filter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*UYmXxpQ5p3QpQndi9Ub0gA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6QypCum0_TRmZ8IoOo5jyg.png" /></figure><p>If the user had assigned records, before deleting the user you must reassign all their records to another user and after try deleting the user again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*26HDiUfyclecwaPXr_bVzw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c4c6818480d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Add additional security layer to Dynamics 365]]></title>
            <link>https://mpr83.medium.com/add-additional-security-layer-to-dynamics-365-208c3afa3409?source=rss-a3d04551f2f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/208c3afa3409</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[dynamics-365]]></category>
            <dc:creator><![CDATA[Mark]]></dc:creator>
            <pubDate>Mon, 28 Nov 2022 20:49:36 GMT</pubDate>
            <atom:updated>2022-11-28T20:53:10.147Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kfYV2RDUUV1UAtpF" /></figure><p><strong>Security — IP address-based cookie binding (Preview)</strong></p><p>This public preview starting 8/25/2022 and will continue until now.</p><p>The user then tries to use the cookie on a different computer to gain unauthorized access to Dataverse. In real time, Dataverse compares the IP address of the cookie’s origin against the IP address of the computer making the request. If the two are different, the attempt is blocked, and an error message is shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*QFomdN8zGcULnEO0guK1Hg.png" /><figcaption>Enable IP address based cookie binding in your environment</figcaption></figure><p>Scenarios in which users will be asked to reauthenticate</p><ul><li>When any VPN client is turned on or off</li><li>When connecting to a wireless hotspot</li><li>When the Internet connection is reset by the Internet service provider</li><li>When a router is reset or restarted</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NMykc06tqoxuxI3D" /><figcaption>The message when you IP doesn’t match with source cookie client IP</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=208c3afa3409" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>