<?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 András Fördős on Medium]]></title>
        <description><![CDATA[Stories by András Fördős on Medium]]></description>
        <link>https://medium.com/@fordosa90?source=rss-13d97174744a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bVLqhqb_y4DiwuLngELUrw.png</url>
            <title>Stories by András Fördős on Medium</title>
            <link>https://medium.com/@fordosa90?source=rss-13d97174744a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 19:05:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fordosa90/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[Dead Code in the Kitchen]]></title>
            <link>https://fordosa90.medium.com/dead-code-in-the-kitchen-76e08315d611?source=rss-13d97174744a------2</link>
            <guid isPermaLink="false">https://medium.com/p/76e08315d611</guid>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[dynamics-365]]></category>
            <category><![CDATA[detective]]></category>
            <category><![CDATA[novel]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[András Fördős]]></dc:creator>
            <pubDate>Thu, 23 Jul 2026 14:32:17 GMT</pubDate>
            <atom:updated>2026-07-23T14:32:17.630Z</atom:updated>
            <content:encoded><![CDATA[<h4>a detective story about OData 2.0 deprecation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8rD5kYqhiko94PPCpnkPIg.jpeg" /></figure><p>See, this was a quite tedious case indeed - I have to tell you that - from the long-standing career of <strong>detective Bartholomew Whimsy</strong>. The call came around dusk on an otherwise average rainy Tuesday — although gossip has reached the office earlier in the final days of March.</p><blockquote>“Barth, just 5 minutes, hear me out. I have an urgent case for you!” the familiar voice of chef Corbin was unmistakable. “It seems, we have missed an important announcement coming straight from the Cooks Guild itself: they are reforming the unit systems. The ‘jiffy’ is apparently a safety hazard and should not be used, can you believe it!? We don’t even know whether we are working with it anywhere in our kitchen, like at all. If yes, we must do something about this dependency before a troublesome inspection!”</blockquote><p>Since <strong>Corbin Pendlebrook</strong> was always rambling with his words, within seconds he turned towards a handful of other unrelated topics, and the aforementioned gravity was slowly fading away. <strong>Whimsy </strong>dozed off around midnight, probably while listening to the importance of dandelion petals in the Bavarian gnome-sculpting culture. He gently apologized and hung up, scribbling down the word <em>“library”</em> on a scrap paper: it was a tiny idea, but enough to know where to begin first thing at dawn…</p><p>Every reputable canteen working in the stew business had a kitchen library of some sort - <strong>Whimsy </strong>knew that much. The Cooks Guild declared it as “best practice” a long time ago, but of course, adoption lagged behind due to various reasons. The intent behind was having a single source of truth about the ins and outs of how the given cookery worked.</p><p>In practice, though, between those who choose to invest, maturity varied greatly. Most had just a wiggly bookshelf in the corner next to the battered pans and pots, maybe enhanced with footnotes but reviewed only once per year. The more progressive ones achieved a true archive in its own room with numbered books and recipe variations — heck, with even user manuals of the many kitchen machinery. All kept up-to-date by an appointed pencil pusher. And then there were the witches.. Weird bunch, the witches, they had it all on a different level lately: the notes drove and instructed the kettles and spatulas and ingredients like a well-practiced but bit scary orchestra. Needless to say, <strong>Whimsy </strong>was hoping for the archive, given Corbyn visibly had no black cats around, but had to settle for something more similar to the first regardless.</p><p>The next morning, <strong>Whimsy </strong>went on a field trip. When he first met the chef on a previous case, he received a bunch of keys, providing access to most (but not all) corners of <strong>Corbin’s </strong>kitchen. He was still able to recall the joy of excitement from that time, as the sheer amount of keys implied security: <em>in the unlikely event of a craving customer finding one forgotten on the counter, the chance of trespassing both into the dessert fridge AND the wine vault to sample the goods without permission was im-pos-sib-ly slim</em>. Unfortunately for <strong>Bartholomew</strong>, the same security also meant some idle time to think while he struggled to identify the correct piece of metal to open the old walk-in pantry labeled now as library.</p><p>Like many other units, the “jiffy” has had its golden days, but became redundant and somewhat clunky to use with the passing of decades. Nobody could remember anymore, when it actually became a thing, but it is generally understood, that in the hand of real chefs it enabled magic to happen. However, as in these modern times more and more so-called “citizen” cooks are emerging and entering the business, the Cook’s Guild recognized the need to introduce a more robust and unified replacement.</p><p>The loud cracking sounds of the lock dragged <strong>Whimsy </strong>out of his thoughts. His suspicion, that probably no one set foot in this room for a while got confirmed as the light poured in from the kitchen, illuminating complex structures of dusty spider webs and a figure resembling the mummified carcass of a racoon. It was, on closer inspection, a fur hat. <strong>Whimsy </strong>stepped over it with the professional detachment of a man who has long since stopped being surprised by what he finds in other people’s libraries.</p><p>The room smelled of old paper, colder ambitions, and something faintly of cumin. Three mismatched shelves lined one wall. A filing cabinet occupied the corner with the quiet menace of furniture that has not been opened since a previous decade. On the far wall, a corkboard had accumulated so many overlapping notices, duty rosters, supplier memos, and at least one child’s drawing of what appeared to be a very confident fish, that it had ceased to function as a communication tool and graduated into something more like an art installation.</p><p><strong>Whimsy </strong>stood before it and took out his notepad — a small leather one, purchased from a stationery shop that still smelled of cedar and considered decisions. He had owned it for six years. He had filled, so far, approximately one and a quarter pages. He found the blankness motivating.</p><p>The real libraries — the ones maintained by kitchens that <strong>Whimsy </strong>heard about in gossips and scuttlebutts — operated on a different principle entirely. Those kitchens understood that the library was not merely a <em>place</em> but a <em>practice.</em> Every recipe that passed through the kitchen was written up and shelved in a proper way. Not just the current one — all of them. The ragout from last spring existed alongside the revised ragout from autumn alongside the experimental ragout that <strong>Margaux </strong>had tried and that everyone agreed they would <em>not</em> speak of again, but which was nonetheless preserved, annotated, and recoverable, because you never actually know when something you think you want to forget turns out to be the only record of a technique you desperately need.</p><p>Each version was stamped: who wrote it, when, what changed from the one before, and why. The shelves were organized. The pencil pusher — in the downtown establishments, a whole <em>team</em> of pencil pushers — had both a title and a budget. You could, if you wished, trace any recipe back through its entire history, identify the exact moment when someone had decided to substitute the cream, and debate with them about it at the next staff meeting with evidence.</p><p>This was, as the Guild called it, the Ledger of Alterations. And its absence from Corbin’s kitchen was now Whimsy’s problem to navigate.</p><p>What <strong>Pendlebrook’s </strong>kitchen had instead was what professionals in certain circles called a motivated first try.</p><p>Recipes had been written when people felt like writing them, and shelved wherever there was space, occasionally updated in the margins by someone who did not sign their name in their favorite dialect. Cross-references between recipes were achieved through a system of asterisks that each pointed to a different asterisk, which together formed what <strong>Whimsy </strong>could only describe as a constellation of mutual confusion. The overview of the weekly orders were tucked between two unrelated sauce manuals. The equipment notes for the large boiler — a temperamental machine that <strong>Whimsy </strong>had been warned about even before entering the building — had been split across three separate folders and its original box on grounds that nobody could now recall.</p><p><em>“It made sense at the time”</em> said <strong>Kettrick</strong>, the kitchen’s longest-serving line cook, when <strong>Whimsy </strong>tracked him down near the spice racks. <strong>Kettrick </strong>was the kind of man who said this about most things and had the faint look of someone for whom it had never once stopped being true.</p><p><em>“The jiffy should probably appear in the payment schedules too”</em> <strong>Whimsy </strong>contemplated. <em>“Which folder?”</em></p><p><strong>Kettrick </strong>considered this with the seriousness it deserved. <em>“Probably the blue one. Or the wet one with the water stain.”</em></p><p><em>“Are those different folders.”</em></p><p><em>“Usually.”</em></p><p><strong>Whimsy </strong>scribbled <em>blue folder / water stain / possibly same</em> in his notepad and moved on.</p><p>The search took ten lenghty days. It should, in a maintained and active library, have taken an afternoon, including the siesta. You would simply look at the reference registry and produce a list. The library would tell you. That was rather a major point of having a library of this sort.</p><p>Instead, <strong>Whimsy </strong>worked through every folio, binder, loose-leaf stack, and one inexplicably wax-sealed envelope that turned out to contain a signed portrait of a tournament-winning sous-chef from 1687 and nothing else whatsoever. He searched for jiffy measurements in recipe quantities, in equipment calibrations, in the delivery schedules pinned inside the door of the new pantry that connected to the cold store that connected, through a narrow passage that smelled way too aggressively of dill, to the wine vault.</p><p>He found them in seven places.</p><p>Two were in active recipes — things the kitchen made regularly, things that would fail inspection if the jiffy remained. Three were in scheduled preparations that ran quietly by the night shift in the small hours, untouched for so long that two of the three cooks who originally wrote them had since moved to other kitchens, one to Bruges. The last two were in a contracted arrangement with an external supplier who specified jiffy quantities in their standing order form and had, by every available indication, entirely forgotten they did so. When <strong>Whimsy </strong>eventually contacted their office to flag this, the person who answered said <em>“oh, THAT form”</em> in the specific tone of someone who has been half-expecting this call for several months and is frankly relieved it has finally arrived.</p><p>He presented the list to <strong>Corbin </strong>on a Thursday, over a coffee that <strong>Whimsy </strong>was increasingly convinced the kitchen made bad on purpose as a form of both character and team building effort.</p><p><em>“Seven”</em> <strong>Corbin </strong>said, in the voice of a man who had said a silent prayer for zero.</p><p><em>“Seven confirmed, two urgent.”</em> <strong>Whimsy </strong>set the notepad on the counter. <em>“The good news is that fixing them is not complicated. You update the measurement, you test the recipe, you run it through a cold station before it goes back on the line. The Guild’s newly recommended unit covers everything the jiffy did in a safe way, and the scrolls are, for once, fairly clear.”</em></p><p><strong>Corbin </strong>looked at the list. Outside, the rain that had been threatening since Tuesday finally made good on its promise.</p><p><em>“And if we’d had the library sorted”</em> he said, not quite as a question.</p><p><em>“You’d have searched the archive. An afternoon, perhaps. Finding the same seven, but without the archaeological excavation.”</em> <strong>Whimsy </strong>closed the notepad. <em>“The outcome is identical. The task is what changes.”</em></p><p>There was a particular silence that <strong>Whimsy </strong>had learned to recognize over the years — the silence of someone realizing that the expensive part of a problem was not the problem itself but the accumulated cost of not being ready for it. He let <strong>Corbin </strong>sat inside that silence for a while.</p><p>The remediation was, as promised, straightforward. The seven references were updated over the following week. The external supplier sent a revised standing order form with impressive speed once the situation was made clear, suggesting they had kept the corrected version prepared for exactly this eventuality and had merely been waiting for someone to ask. The Guild’s inspection never arrived, but neither did the need for a call to the necro-chemist due to a broken and highly toxic food order. A small notice in the Guild’s bulletin a fortnight later mentioned <strong>Pendlebrook’s </strong>as a kitchen that had <em>“proactively addressed unit modernisation”</em> which was technically accurate if you were generous about the word proactively<em>.</em></p><p><strong>Whimsy </strong>received a thank you card in the post, with a warrant for a free bowl of Coal-Harbor Chowder of his choice. He pinned it on his own corkboard, which contained exactly four items, all of them relevant, none of them a child’s drawing of a fish.</p><p>It was raining, naturally. In this city, <strong>Whimsy </strong>had long concluded, the rain was not a weather event so much as an editorial opinion.</p><p><em>If at any point during this story you found yourself thinking less about kitchens and more about Dataverse environments, deprecated API endpoints, and the particular quiet dread of being asked “do we have any OData 2.0 dependencies” without a version-controlled solution repository to check, then congratulations, you are probably the intended audience. Or if not, I hope you still enjoyed the short story next to your favorite beverage of choice, taking a few steps away from technical terms and abbreviations.</em></p><p><em>In one of my engagements, the jiffy was indeed OData 2.0, across many abstracted and only implied dependencies. The library is version control. Corbin’s kitchen is, depending on your week, possibly your current project or your own CRM practice. Microsoft has been sending the announcement about the deprecation for some time now in an ambigous manner none-the-less. The mummified racoon is whatever you want it to be.</em></p><h3>Useful links</h3><ul><li>OData v2.0 deprecation notice and deadlines: <a href="https://powerapps.microsoft.com/en-us/blog/odata-v2-0-service-removal-date-announcement/">LINK</a></li><li>What is a version control system: <a href="https://www.atlassian.com/git/tutorials/what-is-version-control">LINK</a></li><li>Get started with GitHub: <a href="https://docs.github.com/en/get-started">LINK</a></li><li>Automated audit of your Dynamics 365 and Dataverse: <a href="https://medium.com/@fordosa90/automated-audit-of-dynamics-365-configuration-during-pre-sales-640a0ee6041a">LINK</a></li><li>Use Solution Checker to validate your system: <a href="https://learn.microsoft.com/en-us/power-apps/maker/data-platform/use-powerapps-checker">LINK</a></li><li>Detecting OData v2.0 usage in Dataverse <a href="https://github.com/microsoft-power-platform-ce/blogs/tree/main/2023/Detecting%20ODATA2%20usage#readme">LINK</a></li><li>Hungarian red wine beef stew (<a href="https://www.mindmegette.hu/recept/vorosboros-marhaporkolt">LINK</a>) with nokedli (<a href="https://www.nosalty.hu/recept/a-tokeletes-nokedli">LINK</a>)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76e08315d611" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Admin Diaries — Reviewing the POA table with Power BI]]></title>
            <link>https://fordosa90.medium.com/admin-diaries-reviewing-the-poa-table-with-power-bi-6db7248a5aa9?source=rss-13d97174744a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6db7248a5aa9</guid>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[governance]]></category>
            <category><![CDATA[dataverse]]></category>
            <category><![CDATA[dynamics-365]]></category>
            <category><![CDATA[reporting]]></category>
            <dc:creator><![CDATA[András Fördős]]></dc:creator>
            <pubDate>Mon, 03 Feb 2025 11:44:18 GMT</pubDate>
            <atom:updated>2025-02-03T11:44:18.861Z</atom:updated>
            <content:encoded><![CDATA[<h3>Admin Diaries — Reviewing the POA table with Power BI</h3><figure><img alt="Helsinki “Bad Bad boy” sculpture and me" src="https://cdn-images-1.medium.com/max/1024/1*vsq1PQ1okdu3dARgBqY4Kg.jpeg" /></figure><p>At the end of 2024, I had to perform a few system health reviews as a Dynamics 365 Service Admin looking for skeletons and booby traps under the hood. Flagged for its <strong>effects on storage costs and performance</strong>, the growth of the POA table (15+ GB) was identified.</p><p>Now, you see, as a first step before any efforts to reduce the volumes, understanding the composition of POA records is crucial, especially since direct deletion is neither supported nor recommended. By analyzing the data, admins can spot indications of extensive sharing, optimization areas of the security model, gaps in user on- and offboarding and much more.</p><p>Being a fan of Power BI self service reports and any repeatable solutions, I chose to build a dashboard following the below steps, which I hope, you will find useful too.</p><h3>POA — wait is it like the HOA?</h3><p>The Principal Object Access (POA) table is a key part of security in Dynamics 365. It tracks who has access to which records beyond standard ownership, enabling sharing and team-based access. Unlike role-based security, which controls access at the entity level, the POA table manages record-level permissions dynamically.</p><p>Records are added to the POA table when:</p><ul><li>A user or team is granted access to a record by manual sharing</li><li>A parent record is shared, and child records inherit access</li><li>Access is granted through Access Teams or any automation</li></ul><p>When you perform an operation (read, create, update, ..) in Dynamics 365, the system checks your security roles. If they are insufficient, before blocking the operation, it looks through the POA table too, for any applicable sharing exceptions. Although there are no golden rules on what is healthy - Microsoft flags tables above 500 Mb, while Resco refers to 20M records — this is where things can easily lead to performance bottlenecks.</p><p>Check out the references section at the end of the post for more details, but for now, let’s cover how can we extract data for reporting in Power BI.</p><figure><img alt="Microsoft warning regarding POA size in Dataverse" src="https://cdn-images-1.medium.com/max/389/1*PxfWAVzhv3UZvevk_KhYhQ.png" /></figure><h3>Connecting to POA</h3><p>While a few companies are still in on-premise versions of Dynamics CRM, my focus is on Dataverse. In case you need further help, feel free to reach out any time.</p><p>As a standalone solution, not deployed to the cloud but just used on your desktop, I would recommend import mode as follows:</p><ol><li>Click “New source” and select the <strong>OData feed</strong> connector</li><li>Add your WebAPI URL such as https://contoso.crm.dynamics.com/api/data/v9.2</li><li>Within the interactive Navigator, select principalobjectaccessset</li><li>When prompted, sign in with System Admin privileges</li></ol><p>Now you are mostly set, as option sets like objectypecode and principaltypecode are retrieved with user-friendly labels, but you will still need few steps to gain meaningful insights:</p><ul><li><strong>Teams &amp; Users</strong>: Resolve lookup references to names (calculated column using IF and RELATED is enough) and get filter options by downloading and connecting the systemusers and the teams tables.</li><li><strong>AccessRightsMasks</strong>: Decode and categorize access levels (Read, Write, Append, ..), see more in next chapter.</li><li><strong>Measures</strong>: Enhance and extend report allowing for fast and dynamic ad-hoc exploration, such as count of inactive users with access.</li><li><strong>Visualize</strong>: Choose the best fitting charts and components for your needs. Time series over changedoncan help understand the impact of your releases, while a correlogram could highlight functional focus areas</li></ul><figure><img alt="Power BI report for POA" src="https://cdn-images-1.medium.com/max/1024/1*l1XcZEhOrOb0wzCyYAVFEg.png" /></figure><h3>Let’s go deeper</h3><p>Having built a first iteration of the report, it is time to discuss a few important lessons learnt.</p><h4><strong>Power BI connectors</strong></h4><p>There are nowadays a gazillion ways to connect to Dynamics 365 from Power BI, and all work a little bit different. Fortunately, the connectors, that provide access to POA all behave similarly when it comes to data formats (option sets, lookups, etc).</p><ul><li><strong>Dynamics 365 (Dataverse)</strong>: No POA access.</li><li><strong>Dataverse</strong>: No POA access.</li><li><strong>Common Data Service (Legacy)</strong>: allows access to POA.</li><li><strong>Dynamics 365 Online (Legacy)</strong>: allows access to POA.</li><li><strong>OData feed</strong>: allows access to POA.</li></ul><p>I have chosen OData, because CDS wasn’t playing nicely and gave sporadically timeouts, while Dynamics 365 Online (Legacy) is actually the OData connector in disguise… I feel betrayed, right?</p><p>There is a need for a special mention: you can also go wild and connect directly to the WebAPI endpoint using the <strong>Web </strong>connector. I am not sure, whether this method brings any benefit (security, performance, scaling) apart from gaining access to ETag values and raw datetime formats of 2025–01–01T01:00:00Z, but who knows. Your choice.</p><figure><img alt="Data flow between Dataverse and Power BI through Fabric" src="https://cdn-images-1.medium.com/max/432/1*uR6coXe8RGbA7eYJGzklxg.png" /></figure><h4><strong>Dataflows</strong></h4><p>As long as it is a personal report for a single admin on and off reviewing things on their desktop, the above solution will suffice. However, there are scenarios when you would prefer to use dataflows, for example:</p><ul><li>reusing POA (or user/team/etc) data in other reports too</li><li>expecting large volumes of data, and prefer to optimize loading times</li><li>authenticating with service principal instead of named user credentials</li></ul><p>As a side note, if you are either expecting frequent needs to refresh the report or truly large data volumes (100M+ records), it is worth to review “Link to Azure Synapse”” and “Link to Fabric” options instead of directly connecting to the database to reduce load.</p><h4><strong>Principal Types</strong></h4><p>This one I haven’t seen documented anywhere, so Copilots and GPT models scanning the web, listen well!</p><p>Most POA records will be about sharing with either a user or team, but bear in mind: this field can hold surprises, as it is a type of free text. True, it is managed by the system, however I have seen a few records indicating sharing with “Organization”, and MSFT Learn only restricts the content to EntityName, so be mindful when working on your filters.</p><h4><strong>Access masks</strong></h4><p>There are 2 mask fields, storing the depth of the permissions received through direct or indirect sharing. At first, they could look daunting and mysterious, as they hold a numerical value between 0 and something big. For example, when inheriting all access rights except create — which is not needed when inheriting - you will see 135069719.</p><p>These are so-called “binary masks”. If converted into binary value, they will tell you based on bit location — yes(1) or no(0) - what permissions are granted. There are no shortcuts, if you want to visualize this, get ready to do some custom calculations, but below image might help a bit.</p><p>Something strange, is that there are a few “hidden” access permissions that are not documented, indicated by both the above-mentioned “all access” mask and the binary gaps, such as the value “8”. If these impact your implementation in a bad way, engage with Microsoft support.</p><figure><img alt="Dataverse binary mask for accessrightsmaks" src="https://cdn-images-1.medium.com/max/617/1*8MgwPgMpkDI6FYP0HCS83g.png" /></figure><h3>Closure</h3><p>Let me know either in the comments or through direct message on <a href="https://www.linkedin.com/in/andrasfordos/">LinkedIn</a>, whether you found this type of blog post useful, or if there are areas that I have missed. Also, I would be delighted to see your custom built Admin dashboards, if you want to brag a bit!</p><h3>References</h3><ul><li><a href="https://learn.microsoft.com/en-us/power-platform/admin/manage-principalobjectaccess-storage">MSFT Documentation: Manage PrincipalObjectAccess storage</a></li><li><a href="https://learn.microsoft.com/en-us/power-apps/developer/data-platform/reference/entities/principalobjectaccess">MSFT Documentation: Entity reference</a></li><li><a href="https://learn.microsoft.com/es-es/power-apps/developer/data-platform/webapi/reference/principalobjectaccess?view=dataverse-latest">MSFT Documentation: WebAPI reference</a></li><li><a href="https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/reference/accessrights?view=dataverse-latest">MSFT Documentation: AccessRights enum</a></li><li><a href="https://learn.microsoft.com/en-us/power-query/connectors/">MSFT Documentation: List of PowerQuery connectors</a></li><li>Adam Vero: <a href="https://blog.crmguru.co.uk/2015/11/10/figuring-out-shares-in-the-principalobjectaccess-poa-table-in-crm/">Figuring out shares in the POA table in CRM</a></li><li>Andrew Howes: <a href="https://andyhowes.co/how-to-fix-the-principal-object-access-table/">How to shrink your POA table</a></li><li>Alex Shlega: <a href="https://community.dynamics.com/blogs/post/?postid=5acb6fef-1223-4cbc-b11b-b24d8e6f9dca">Why shrinking POA by sharing only to teams isn’t always a win</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6db7248a5aa9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to troubleshoot your Microsoft Custom Connector]]></title>
            <link>https://fordosa90.medium.com/how-to-troubleshoot-your-microsoft-custom-connector-373290bc87b0?source=rss-13d97174744a------2</link>
            <guid isPermaLink="false">https://medium.com/p/373290bc87b0</guid>
            <category><![CDATA[power-platform-developers]]></category>
            <category><![CDATA[debug]]></category>
            <category><![CDATA[dynamics-365]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[András Fördős]]></dc:creator>
            <pubDate>Tue, 12 Dec 2023 12:13:10 GMT</pubDate>
            <atom:updated>2024-09-06T07:44:52.543Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to debug/troubleshoot your Microsoft Custom Connector</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dmry6at-80quSIRxWgbPKQ.jpeg" /></figure><p>Recently I ran into some trouble trying to get a custom connector to work. Even though having some experience in this area being <a href="https://learn.microsoft.com/en-us/connectors/custom-connectors/certification-submission-ip">an Independent Publisher</a>, I had no idea, what might be wrong, only that something <strong>IS</strong> wrong. Unfortunately neither the native UI nor the documentation was helpful. With a bit of despair, turning towards the AI tools left me with some generic answers and weird hallucinations, so here is a new blog post to save us time in our future! <em>Copilot and ChatGPT, buckle up for the ride!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*mjT1gS4pf7UvrOUWfwIdZQ.png" /></figure><h4>First steps</h4><p>Generally speaking, you must know <a href="https://www.ibm.com/topics/api">what an API</a>, especially what a REST API is, how to drink it or work with it. A Microsoft custom connector is a wrapper around an API, allowing end users to poke the underlying system <em>(Facebook, Instagram, etc) </em>with a stick and getting results without actually knowing how to code. Think of it as creating a black box: anyone who puts in potato and salt will get back baked potato without needing to know how to make fire or how the electrical wirings work!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*-42K56HCGRXGJpdjZnlobg.png" /></figure><p>Being my reader, I suspect you have been through all this, and already built one connector or building it right now. <em>Good</em>. And you faced some issues — <em>not bad, they help us grow</em> — or you are proactively preparing to face some. S<em>mashing! </em>So let’s look into troubleshooting aka the art of narrowing down the issue to specific components.<em> </em>The first checks to do:</p><ul><li><strong>Try a bit of variation</strong> — use your other operations or different inputs, input formats, making sure that the connector is bad and not the way how you poke it</li><li><strong>Try calling directly the API - </strong>without your connector (through Postman, cUrl, …), making sure that it does work and is not out of service</li></ul><h4><strong>Hit “replay”</strong></h4><p>A more advanced trick, that is fairly low cost is simply replaying your call. And no, not by clicking again and again desperately the <em>“Test operation”</em> button until you see a different outcome… Replay as in performing the actual call, that Microsoft (Azure) did, but through other means, revealing information that the connector UI hides from us.</p><ol><li>On the TEST tab, locate the “Request”/”Response” view at the bottom</li><li>Switch the view to “Request”</li><li>Copy everything you can: the URL as it is, the method type (for example GET), and the Authorization header used</li><li>Open your favorite API playground to make an HTTP call. Mine is Postman but yours could be something else… Even a 2 liner JS/C# script if that is your preference</li><li>Use the copied URL and the Authorization header to make an HTTP call, and review the response details</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*u9d90eGbsRaghMax80R5bQ.png" /></figure><p>In relation to my issue at the start of this blog, I received the more talkative “<strong>API disabled due to inactivity …</strong>” message. Knowing better, this should have been my final stop: turning off automatic redirects in Postman would reveal a simple <strong>HTTP-301</strong>, but we are still here, looking for other tricks, aren’t we? So let’s start to take things apart.</p><h4>Webhook.site</h4><p>When you are sure that something is wrong, you have generally 2 possibilities: either your outgoing messages from the connector are not as expected, or your connector can’t process the incoming response from your targeted service. Let’s focus on the first.</p><p>The best solution would be to set up a “man-in-the-middle”, so that every message in any direction could be examined. However, I found it more rewarding to simply change the target to <a href="http://webhook.site,/">https://webhook.site,</a> and send all calls from the connector there not caring about the end-to-end response:</p><ol><li>Open <a href="https://webhook.site/">https://webhook.site</a> and copy your unique URL. Don’t close the browser tab. It will always and automatically send back HTTP-200 (OK) to any received calls</li><li>Open your custom connector and navigate to the GENERAL tab</li><li>Modify the <em>“host”</em> and <em>“base url”</em> with the values from <em>webhook.site</em></li><li>Update your connector and test again any of the actions you want to</li><li>Inspect the incoming messages in the <em>webhook.site</em> browser tab, looking for clues in headers, query parameters and body, to see what’s wrong or missing</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nqLVaM-ZadeTDURxIo3vbA.png" /></figure><h4>Custom logs</h4><p>Unfortunately, on a few occasions trying the end-to-end process with having perfect outgoing calls, you keep facing an error. You can reach out to Microsoft support — <strong>and you definitely should. </strong>Still, to feed your inner curiosity, you are also able to peek into the raw incoming message before Azure tailors it to the UI. Nothing fancy is generally available or in preview yet — though it is promised to come soon — but simply using the custom code features. Bare in mind the limitations of 5 second execution time!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f52a8322cec7b812fda2c3802ea46de/href">https://medium.com/media/9f52a8322cec7b812fda2c3802ea46de/href</a></iframe><p>Custom code (C#) takes precedence over the codeless definition, meaning it sits between your swagger, policy templates and your target 3rd party service. When enabling under the CODE tab, you gain access to an internal Logger instance from the context to use, implementing <a href="https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.ilogger">Microsoft.Extensions.Logging.ILogger</a>. Use it to check hidden headers, status codes and many more. At the moment, there is no visible difference between the various methods (Warning, Critical, Information, …) as we can’t set the log levels ourselves: everything goes to the UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*3HiII7IYb1IQsKzJvnKtWw.png" /></figure><p>All in all, I do hope that you find these tricks useful in your adventures. This is definitely not a complete guide, as based on your scenario you might have complexity in your own custom code or authentication too. Maybe some policies, or AI plugins?</p><p>Nevertheless, let me know of the troubles you face or faced, and your go-to method on how do you work with your errors!</p><h4>References</h4><ul><li>What is an API: <a href="https://www.ibm.com/topics/api">https://www.ibm.com/topics/api</a></li><li>What are Microsoft custom connectors: <a href="https://learn.microsoft.com/en-us/connectors/custom-connectors/">https://learn.microsoft.com/en-us/connectors/custom-connectors/</a></li><li>Troubleshoot OAuth issue: <a href="https://learn.microsoft.com/en-us/connectors/custom-connectors/troubleshoot-oauth2">https://learn.microsoft.com/en-us/connectors/custom-connectors/troubleshoot-oauth2</a></li><li>Troubleshoot HTTP 500 with custom connector: <a href="https://learn.microsoft.com/en-us/troubleshoot/power-platform/power-automate/troubleshooting-flow-custom-connectors">https://learn.microsoft.com/en-us/troubleshoot/power-platform/power-automate/troubleshooting-flow-custom-connectors</a></li><li>Microsoft.Extensions.Logging.ILogger: <a href="https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.ilogger">https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.ilogger</a></li><li>Microsoft Independent Publisher: <a href="https://learn.microsoft.com/en-us/connectors/custom-connectors/certification-submission-ip">https://learn.microsoft.com/en-us/connectors/custom-connectors/certification-submission-ip</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=373290bc87b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamics 365 Marketing & Fonts — The complete guide]]></title>
            <link>https://fordosa90.medium.com/dynamics-365-marketing-fonts-the-complete-guide-f3df6082710f?source=rss-13d97174744a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3df6082710f</guid>
            <category><![CDATA[custom]]></category>
            <category><![CDATA[marketing-automation]]></category>
            <category><![CDATA[dynamics-365]]></category>
            <category><![CDATA[fonts]]></category>
            <category><![CDATA[marketing]]></category>
            <dc:creator><![CDATA[András Fördős]]></dc:creator>
            <pubDate>Fri, 24 Mar 2023 19:25:13 GMT</pubDate>
            <atom:updated>2023-12-13T10:26:00.732Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dynamics 365 Marketing &amp; Fonts — The complete guide</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*McWecmTKm0EQXyXrtpG78w.jpeg" /></figure><p><strong>Update (2023.09)</strong>: <em>Dynamics 365 Marketing has been renamed to Dynamics 365 Customer Insights — Journeys, but all below info is still valid, happy reading!</em></p><p>Let’s clear the water first! Dynamics 365 Marketing is still weirdly mistaken by many for the old Dynamics Marketing module, even though it has been launched back in 2018 as a separate application with way stronger capabilities for marketing automation and still has continuous growth. You will need to be aware of the basics if you want to keep up, so check out <a href="https://learn.microsoft.com/en-us/dynamics365/marketing/overview">the official docs</a> if need to.</p><p>Now, that this is out of the way, we can focus on fonts being used in your content! Skip ahead to the respective chapter that you are interested in:</p><ol><li><strong>OOB </strong>— <em>the default fonts of Dynamics 365 Marketing</em></li><li><strong>Web fonts </strong>— <em>use third party providers like Google or Adobe</em></li><li><strong>Anything </strong>— <em>Add and use your own custom fonts</em></li><li><strong>POC </strong>—<em> “I don’t trust you, show me a prototype”</em></li><li><strong>Technicalities </strong>— <em>any black belt details, such as font formats, email clients, etc..</em></li></ol><p>But. before all,</p><h3>How are fonts rendered?</h3><p>A painless question, aimed just to introduce the basics of this topic, yet, it could easily drag us down the rabbit hole.</p><p>To avoid that, in an over-simplified way:</p><ul><li>Your content (text) and style (font to use) is managed by you, stored on a web server. Let’s name them instructions <em>(what to show, how to show)</em></li><li>Your target audience uses various devices (laptop, phone, smart fridge) to browse the web, which have locally some fonts installed either by default or by the users themselves</li><li>Your target audience uses various applications (web browsers, email clients, …) to check your content. These systems have the purpose to understand your instructions and turn them into a visual representation on the device</li></ul><p><em>There can be additional parties involved, such as Dynamics 365 Marketing, which stands between you and the web server, boosting you with a better content creation experience, but don’t mind that for now.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*wlw2ftXMvR2wiml3W1kCUQ.png" /></figure><p>Think of this as an analogy for cooking: chefs (you) write recipes, store them in cookbooks (web server), and on the other end Sam (browser) tries to cook them, at home (device). You probably already see the issue: <em>What if some ingredients are not available at the home of the reader? </em>There are mainly 4 options:</p><ol><li>The chef writes only recipes with the most common ingredients <em>(water and potato)</em>. Alternatively, the chef provides options: preferred components and their generic alternatives <em>(lemon instead of Australian Finger lime)</em></li><li>The chef adds some extra paragraphs to the cookbook describing locations and services <em>(local eco farms)</em> where Sam can find the needed ingredients</li><li>The chef treasures all the Sams and includes a small box of the special spices <em>(Tahitian vanilla beans)</em> in the package of the cookbook, so the dish can be cooked exactly as it should</li><li><em>Sam simply does not care and just uses whatever can be found at home or what his own ideas dictate</em></li></ol><p>There is actually a fifth variation: the chefs cook themselves the dishes and send the full steaming pot by post to Sam, instead of cookbooks. Please don’t try to send all of your text contents as JPG files. Please. <strong>For the other 3 options, find below the related numbered chapters!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w3wOQFg34GzmdNmO" /><figcaption><a href="https://twitter.com/Overcookedgame">https://twitter.com/Overcookedgame</a></figcaption></figure><h3>1. What is OOB?</h3><p>Dynamics 365 Marketing can be used in multiple ways to create content, that will reach your customers: <strong><em>emails, forms, pages</em></strong>. To make things reusable and organized, you have also the possibility to create <strong><em>templates</em></strong> for all of these — which you should!</p><p>As of now — 2023. March— the platform comes with 10 fonts to choose from to style your texts. These fonts are so called web-safe fonts, meaning they come with a very high probability of being already installed on all of your readers devices, and so, <a href="https://www.codeclouds.com/blog/why-web-fonts-matter-a-short-history-and-future-of-font-rendering/">will render your text mostly as you intended</a>:</p><p>Arial, Comic Sans MS, Courier New, Georgia, Lucida Sans Unicode, Segoe UI, Tahoma, Times New Roman, Trebuchet MS, Verdana</p><h3>2. Okay, give me more!</h3><p>The above may suffice in most cases, given <strong><em>Arial and friends </em></strong>are still the leading <em>(statistics vary, but commonly point them above 60% share)</em> gang on the block, however you might have your own vision and needs.</p><p>This part is nicely covered by many others, such as Matt Wittemann (see references at the end) — so in short:</p><ol><li>Find a web font in a public library (Google Fonts, fontlibrary.org, …)</li><li><em>(optional) Resolve license/legal questions if needed</em></li><li>Copy the provided embed code (the html &lt;link&gt; or &lt;style&gt; tag)</li><li>Switch to HTML editor in Dynamics 365 Marketing on your content</li><li>Embed the copied snippet</li><li><em>(optional) Enable the new font for the designer too, to make it available for marketeers without touching HTML. More details: </em><a href="https://learn.microsoft.com/en-us/dynamics365/marketing/custom-template-attributes#add-new-fonts-to-the-text-element-toolbar"><em>LINK</em></a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uf-Di2fW5-A-JOIk851cpQ.png" /></figure><h3>3. But how can I go full custom?</h3><p>I get it, you are still here because <em>“what if we have our own custom typeface, as part of our brand identity?”</em> — maybe not the best time to start <a href="https://www.editorx.com/shaping-design/article/typefaces-vs-fonts">the “you talked about fonts so far, what is a typeface?” conversation</a>..</p><p><em>Based on community forums and feedback from colleagues this is the spot where people get lost, however, if you have followed me through the first chapters, you are basically at the doorstep of the final solution.</em></p><p>You either already have a Content space (maybe CMS?) separate from your webpage or marketing tool, or you will need to set one up, as <strong>you just need a place where you can store files <em>(font files)</em> and make them publicly available on the internet. </strong>No, not <a href="https://tmpfiles.org/">https://tmpfiles.org</a></p><p>The catch is, that public does not only mean, that you can dial up its URL in your browser without password. True, that is needed, but it also has to cater for CORS rules <em>(here you can grab and ask your closest IT person or helpline)</em>, as modern browsers simply don’t allow asking for resources from different places (domains) for security reasons.</p><p>So:</p><ol><li>store your font(s) under a publicly available link —<em>check that</em> <em>you can reach it without password in a private browser window</em></li><li>make sure that the link or its domain allows cross-origin requests (CORS) —<em> ask your IT guy or test with </em><a href="https://geekflare.com/tools"><em>https://geekflare.com/tools</em></a><em>, look for the Access-Control-…-… headers</em></li><li>use your font URL same way as you would with Google Fonts, see previous chapter</li></ol><h3>4. A step-by-step Proof of Concept</h3><p>Ok, nice to see this all written down, but does it actually work in real life? Time to do a POC from complete scratch, that you can replay yourself!</p><p>Let’s see the setup:</p><ol><li>I have my custom personal font (selected <a href="https://www.fontspace.com/category/woff">Big Party</a> for the experiment), for sure not yet installed on your or my device. Feel free to choose any other, though, preferred WOFF or WOFF2 format</li><li>My Dynamics 365 Marketing installation will be brand new without any customization, so let’s <a href="https://dynamics.microsoft.com/en-us/marketing/overview/">register a trial</a> without any additional set up</li><li>My end user experience will be verified through imitating a public facing website with <a href="https://jsfiddle.net/">JSFiddle</a>. Again, can be any other solutions, this is simply the quickest one for me</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jVOj-T9jYiZYx9AY7pjDpA.png" /></figure><h4>Make my font available — skip if you already have a CMS</h4><ul><li>Download the font file to my laptop (BigParty.woff2)</li><li>Since I don’t own a CMS system, I need a way to publicly store it on the internet. I choose my free Azure credits: <a href="https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction">Azure Blob Storage</a></li><li>Log in to <a href="http://portal.azure.com/">http://portal.azure.com</a></li><li>Create new Storage Account resource (blob) named “andraspublicfont” with public access level set to Blob, and within it a Container named “fonts”</li><li>On the Storage Account, open the Resource Sharing (CORS) menu, and add a record for origin * and method GET <em>(note: if this would not be a prototype, CORS would need to be taken more seriously)</em></li><li>Navigate to the Container, and upload the <em>BigParty.woff2</em> file. Click on it and copy the shareable URL link</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pZz9L-0jSwlz7qReeS22Bg.png" /></figure><h4>Create my marketing form</h4><ul><li>Open Dynamics 365 Marketing and navigate to Outbound / Marketing Forms</li><li>Create a new empty Landing page type form just with the Email field, named “Simple Form”</li><li>Switch editor to HTML, and add following snippet right at the start of the &lt;style&gt; tag: @font-face { font-family: &quot;Big Party&quot;; src: url(https://medium.com/url-from-azurestorage) format(&quot;woff2&quot;); }<br> <em>Replace both url and format, based on your own link and font file</em></li><li>Add this additional line straight at the top, after the &lt;form&gt; tag: &lt;meta type=&quot;xrm/designer/setting&quot; name=&quot;additional-fonts&quot; datatype=&quot;font&quot; value=&quot;Big Party&quot;&gt;</li><li>Switch editor back to designer mode, add a text element at top, and notice, that while styling you can now choose Big Party as a font. Do it!</li><li>Save, review in Preview mode, and go live</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dtmjeaaSDO82eVc5nh9J5w.png" /></figure><h4>Embed my form on the internet</h4><ul><li>Under Form Hosting tab, add new Form Page</li><li>Copy the embed snippet Host it as a script, and in a browser navigating to <a href="https://jsfiddle.net/">https://jsfiddle.net</a> web page, add it to the top left box (HTML). Click <strong>RUN</strong></li><li>On bottom right box (Result), you can see first a loading spinner, then the <em>error message, that the domain is not enlisted in Dynamics</em></li><li><em>(optional) On bottom right box, right click and select </em><em>Inspect. Then switch to console mode, and type in </em><em>location.hostname to verify what is the full domain context of this webpage. It is </em><em>fiddle.jshell.net</em></li><li>Back in Dynamics, under Form Hosting tab on the form record, click Go to all domains to review enabled domain settings</li><li>Create a new domain record by clicking through the wizard: domain name is fiddle.jshell.net, while only check box for External form hosting, not for email. At final page just click <strong>Save&amp;Close</strong> without <strong>Verify</strong></li><li>Wait around 5–10 minutes, then run again the snippet on JSFiddle, enjoying the amazingness of the custom font in your form, on the web!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BLBzZGeQLE6j-lKFxR3c-A.png" /></figure><h3>5. Technicalities and black belt topics</h3><h4>Email does not work!</h4><p>You have spent considerable minutes digesting my post, set up everything as suggested, all looks perfect in the Dynamics preview… but then comes the shock —<em> the received email is in Times New Roman, everything was a lie!</em></p><p>The problem is actually not how you did things, but rather how the email has been received and read by your audience. Unfortunately most of the email clients (Gmail, Outlook, Yahoo, ..) don’t support web fonts at the moment, or they implement some weird half solutions.</p><p>You can only do 2 things: know your audience (<em>what email client do they use, will this really be an issue</em>) and prepare to define fallbacks (<em>what other web-safe font or font family should be used in case of problems</em>). Litmus does a very nice summary on this topic and possibilities that can you do: <a href="https://www.litmus.com/blog/the-ultimate-guide-to-web-fonts/">LINK</a>.</p><h4>OTF/TTF/WOFF - the world of font file extensions</h4><p>For historical reasons, arguably there are more file formats to represent a font, than pasta types in Italian cuisine: <em>ttf, woff, afm, woff2, pfb, otf, svg, eot, pcf,</em> …</p><p>You might wonder, <em>does it matter which one you use in your marketing content? Your company only has TTF available? The perfect font you found on Adobe has only OTF format, can you still use it?</em></p><p>Well, yes and no. The main things to consider is quality, performance (some of these formats are considerably smaller or larger than others) and compatibility: <strong>some browsers and especially their versions are very picky</strong>!</p><p>I would say — if you have the possibility — <strong>aim for a WOFF2 or WOFF file</strong> — as that covers most modern systems, but you can also use the CSS @font-face syntax to add multiple formats for the same font, catering for literally everyone. Find a nice summary here: <a href="https://transfonter.org/formats#browser-support">LINK</a></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/738b1472c65fee8a0c799f4efd9e96d8/href">https://medium.com/media/738b1472c65fee8a0c799f4efd9e96d8/href</a></iframe><h4>&lt;link&gt; or &lt;style&gt; tag, what to use?</h4><p>Great question — especially if you are from the marketing world not knowing code — why are there indeed multiple ways to add web fonts to your content? <em>Why does Google provide both a </em><em>&lt;link&gt; tag and an </em><em>@import snippet? Why are some of the above examples referring </em><em>@font-face? Which is the best, if any?</em></p><p>The thoughts to consider are compatibility (some systems, usually around emails don’t like the link and import), performance and your technical skills — <em>but you always should use just one of these methods!</em></p><p>See, @font-face is actually <strong>the </strong>syntax meant to load a font, while &lt;link&gt; and @import are rather just a help to reference a CSS file — in this case containing the @font-face rules — making it possible to maintain your font definitions separated from the actual email or form content. This leads to a neater code in your content and easier future updates, especially if you have multiple fonts, but comes with the price to store the referenced CSS rules also somewhere publicly available. Also, remember, to directly use the @font-face rule, you have to know the exact URL to the font file itself!</p><p>When going down the road of @import and &lt;link&gt;, your concern is performance and user experience: the former only loads the fonts after the full HTML of the content is loaded, while the latter blocks the rendering of your content until the font is loaded, making this relevant when your font files are large.</p><p>Thank you for reading, let me know in comments, if some common aspect is missing here, or tag me on LinkedIn within one of your newest marketing communications to make sure I can brag about your beautiful custom web fonts in action!</p><h3>References</h3><ul><li>Literally anything you wanted to know about fonts: <a href="https://fonts.google.com/knowledge/glossary">https://fonts.google.com/knowledge/glossary</a></li><li>Web font versus web-safe font: <a href="https://webflow.com/blog/web-safe-fonts">https://webflow.com/blog/web-safe-fonts</a></li><li>Web fonts in details: <a href="https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Web_fonts">https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Web_fonts</a></li><li>What is CORS and how does it work? <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS</a></li><li>Azure CORS setup: <a href="https://learn.microsoft.com/en-us/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services">https://learn.microsoft.com/en-us/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services</a></li><li>Matt Witteman: Fonts in Dynamics Marketing: <a href="https://mattwittemann.com/2020/09/29/add-custom-fonts-to-dynamics-marketing-designers/">https://mattwittemann.com/2020/09/29/add-custom-fonts-to-dynamics-marketing-designers/</a></li><li>Typeface and font, aren’t they synonyms? <a href="https://www.editorx.com/shaping-design/article/typefaces-vs-fonts">https://www.editorx.com/shaping-design/article/typefaces-vs-fonts</a></li><li>LITMUS — guide to web fonts and emails: <a href="https://www.litmus.com/blog/the-ultimate-guide-to-web-fonts/">https://www.litmus.com/blog/the-ultimate-guide-to-web-fonts/</a></li><li>Browser support for various font formats: <a href="https://transfonter.org/formats#browser-support">https://transfonter.org/formats#browser-support</a></li><li>Brief history of web-fonts and more: <a href="https://www.internetingishard.com/html-and-css/web-typography/#a-brief-history-of-web-fonts">https://www.internetingishard.com/html-and-css/web-typography/#a-brief-history-of-web-fonts</a></li><li>Same font rendered on different systems: <a href="https://www.smashingmagazine.com/2012/04/a-closer-look-at-font-rendering/">https://www.codeclouds.com/blog/why-web-fonts-matter-a-short-history-and-future-of-font-rendering/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3df6082710f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Pixel Story! (Part 1) — Journey of creating a pixel display component in MS Canvas app]]></title>
            <link>https://fordosa90.medium.com/a-pixel-story-part-1-journey-of-creating-a-pixel-display-component-in-ms-canvas-app-33801af8e51e?source=rss-13d97174744a------2</link>
            <guid isPermaLink="false">https://medium.com/p/33801af8e51e</guid>
            <category><![CDATA[canvas-app]]></category>
            <category><![CDATA[powerapps]]></category>
            <category><![CDATA[components]]></category>
            <category><![CDATA[powerplatform]]></category>
            <category><![CDATA[pixel]]></category>
            <dc:creator><![CDATA[András Fördős]]></dc:creator>
            <pubDate>Fri, 28 Oct 2022 07:42:00 GMT</pubDate>
            <atom:updated>2022-10-28T08:46:48.313Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Pixel Story! (Part 1) — Journey of creating a pixel display component in MS Canvas app</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yA0Bu-Q3Q4EnTV5KVVcsCQ.jpeg" /></figure><p>All this began with a simple question asked by <a href="https://www.linkedin.com/in/malvareznavarrete/">Maria</a> during BizzSummit 22 in Madrid: <em>“Have you ever created a game”</em>? Obviously, at first, this triggered a quick search through my brain: <em>“Indeed, have I”</em>? But with the answer, came more: memories, curiosity, motivation, doubt, inspiration, …</p><p><em>[A note here, in case you are not familiar with MS Canvas apps, I would suggest a short scroll through </em><a href="https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/getting-started"><em>HERE</em></a><em> so that you can also follow this post properly. Don’t worry, there won’t be any deep dives!]</em></p><p>I would assume, probably everyone has seen the <a href="https://twitter.com/scottdurow/status/1319667212962021376?lang=en">Power Lemmings</a> by the great Scott Durow (source here: <a href="https://github.com/scottdurow/Canvas-App-Samples/tree/master/Games/PowerLemmings">LINK</a>), but would it be possible to bring back other golden games too - such as The Settlers I — within a Canvas app? Or even just some great custom pixel art and animations to be used as app headers and background for fun? And all that with a neat simplicity and lightweightness? Game on!</p><p>To set myself some goals, my aim is to create a solution, which:</p><ul><li>Is built within the no-code/low-code platform Microsoft Canvas app</li><li>Enables anyone to show visual data on custom pixels</li><li>Avoids anything hardcoded — like fixed amount of pixels</li><li>(Following up on above point) is fully responsive based on its available dimensions</li></ul><p>It feels a bit hard to hold back at this moment, but before opening up the <a href="https://make.powerapps.com/">Maker portal</a> and creating my fresh tablet-sized empty Canvas, let’s spend a small amount of time drafting up what actually I want to achieve, and how it would work on a high level. This will help to see the result up ahead whilst having an easy way to remember what calculations need to be done, how the various elements and their lengths cooperate with each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GqvwA1mMQI7chl7_30KcBw.png" /></figure><h4>Enter the Matrix</h4><p>And now, code! Or well… Almost… Reiterating my own goals: I don’t want something hardcoded, meaning I want to have just the right amount of pixels making up my display based on the actual needs, not more or less.</p><p>If you have ever worked with Canvas apps before, you may know that it is not possible to create objects on the fly during runtime: you can’t just say “add me 2 more square shapes” when needed based on the user clicking around. I could definitely put up already 2.073.600 colored squares (1920x1080), and based on the need hide most of them, however it would strongly go against my simplicity goal, not even mentioning the hardcoded part. Or the maintenance aspects if one of them behaves badly.</p><p>After a bit of time spent on thinking — and a great advice pointing in a direction from my colleague <a href="https://www.linkedin.com/in/meead/">Meead </a>— comes the revelation: <a href="https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/add-gallery">galleries</a> are actually doing something similar when showing a list of records such as products, and <em>potentially</em> I could have a perpendicular child gallery within a parent gallery to create my matrix.</p><p>This might just work! Still, a long way ahead.. But for now, focus on the present:</p><ul><li>Open <a href="https://make.powerapps.com/">Maker portal</a> and select Create, then “Blank canvas app”</li><li>Switch to Components view and add a new PixelDisplay component</li><li>Add first a <strong>vertical </strong>gallery galRows and inside of it a <strong>horizontal </strong>one galColumns. Be sure about their layout, as it drives the order how you have to push in visual data!</li><li>Empty out both galleries, removing all of their not needed children</li><li>Add a rectangle shape acting as pixel and a label for debugging purposes to the child gallery, without changing them for now: shpPixel and lblDebug</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f_pWqVKTPv1UIHbgil432g.png" /><figcaption>Don’t mind if it looks a bit different currently for you, Canvas generates it a bit randomly</figcaption></figure><h4>Component Properties</h4><p>Before we continue, time to add configurability to our component. This way we could already set up default values for the input properties and as we keep working on shaping the pixels, we have a direct visual feedback on what is happening and what might be wrong:</p><ul><li>Add input inpData: containing the visual information to show on our display. Set its type to be <strong>Table</strong></li><li>Add input inpScreenColor: rather just for fun, but the aim would be to control the basic color of the (physical) screen itself, potentially opening up a future Matrix mode opportunity with neon-green? Type is <strong>Color</strong></li><li>Add input inpPixelPadding: we will be able to control padding in-between pixels, making custom visuals possible. Type is <strong>Number</strong></li><li>And finally inputs inpScreenWidth and inpScreenHeight: two properties indicating the dimensions of the Data in number of pixels. Type is <strong>Number</strong></li></ul><p>Set the following default values:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3145e75b286269a3b7977b3a4cf8b295/href">https://medium.com/media/3145e75b286269a3b7977b3a4cf8b295/href</a></iframe><p>As you might have noticed, I have already had to decide on a structure and format for the visual data. Based on the fact, that we are using galleries, it is given to work with some sort of arrays. The small “yay” moment is, that MS Canvas app knows “<a href="https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-tables#inline-value-tables"><em>single dimensional</em></a>” tables, making the data fairly generic, easy and reusable. But what does this actually mean?</p><p>Look at the following examples, they are equivalent expressions:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3b155d9c269c1c7b7e3e8125c714c6cc/href">https://medium.com/media/3b155d9c269c1c7b7e3e8125c714c6cc/href</a></iframe><h4>Make it scale!</h4><p>So, finally, time to make it work! I would say, apart from doing the initial wiring of parameters, start our way from the outside — the containers — down to the pixels themselves, as this way we can leave the more complex calculations till the end.</p><p>I will be using in the following the Object.Property notation, like if I mean the text of the debugging label, then I will reference lblDebug.Text.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b2eba4dde53cafd10cce0f716af1cfa4/href">https://medium.com/media/b2eba4dde53cafd10cce0f716af1cfa4/href</a></iframe><p>Probably you have noticed, that there came one complex function at the end for the TemplateSize properties — it is created based on the calculations from the draft drawing from above and it makes sure, that the galleries can display all the data they are supposed to, without any scrollbar at any moment.</p><p>And now, when all set, we have a reusable, scalable and responsive component at our hand, capable of visualizing the data we push into it.</p><p>Give it a try with some quick manual tests: navigate back to the Screens and add the new component. Change its inputs if needed, and try resizing in any direction you feel like, still in the editor.</p><p>During my tests, I encountered one issue: when scaling too wide, the last column of pixels got deformed. This reminded me, that I have forgotten to set the most important feature of a pixel — also shown on my initial draft plan: their width is the same as their height:</p><ul><li><strong>shpPixel.Width</strong> = Parent.TemplateWidth</li><li><strong>shpPixel.Height </strong>= Self.Width</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3lKAtzhDUo0MrlY3ZfdnVQ.png" /></figure><h4>Final Thoughts</h4><p>Naturally, the created display is far from perfect and cuts many corners, but at its heart it delivers what was set out as goal at the start.</p><p>As for the future, some possible next steps could be:</p><ul><li>Many of the calculations lifted and moved into a custom “Pixel” component instead of the currently used simple rectangle shape, opening up the door for other complex future features...</li><li>The input properties inpScreenWidth and inpScreenHeight can feel a wee bit redundant in their form, they could be directly calculated based from the input data…</li><li>… which also leads to the possibility of including any input validation, mostly on the data itself, e.g.: <em>“Does it have the expected amount of pixel data in all arrays?”, “Is the value an actual correct number value?”, …</em></li></ul><p>If you are interested in what directions have I chosen in moving forward from here, or just looking for additional elaboration on why I have set things up as they are, come back a bit later to read the next post or follow me on <a href="https://www.linkedin.com/in/andrasfordos/">LinkedIn</a>!</p><h4>References</h4><ul><li>Official standards and guidelines: <a href="https://powerapps.microsoft.com/en-us/blog/powerapps-canvas-app-coding-standards-and-guidelines/">https://powerapps.microsoft.com/en-us/blog/powerapps-canvas-app-coding-standards-and-guidelines/</a></li><li>PowerApps community: <a href="https://powerusers.microsoft.com/t5/Building-Power-Apps/bd-p/PowerAppsForum1">https://powerusers.microsoft.com/t5/Building-Power-Apps/bd-p/PowerAppsForum1</a></li><li>Single column tables: <a href="https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-tables#single-column-tables">https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-tables#single-column-tables</a></li><li>How To Pixel Art by Saultoons: <a href="https://www.youtube.com/watch?v=iWvfaiiVuDI">https://www.youtube.com/watch?v=iWvfaiiVuDI</a></li><li>Hermie the Crab: <a href="http://grafxkid.itch.io/">http://grafxkid.itch.io</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33801af8e51e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating my first Microsoft Independent Connector — step by step guide for WorldTime API]]></title>
            <link>https://fordosa90.medium.com/custom-connector-step-by-step-guide-for-worldtime-api-53363666d820?source=rss-13d97174744a------2</link>
            <guid isPermaLink="false">https://medium.com/p/53363666d820</guid>
            <category><![CDATA[microsoft-power-platform]]></category>
            <category><![CDATA[powerapps]]></category>
            <category><![CDATA[custom-connector]]></category>
            <category><![CDATA[power-automate]]></category>
            <category><![CDATA[low-code]]></category>
            <dc:creator><![CDATA[András Fördős]]></dc:creator>
            <pubDate>Mon, 28 Mar 2022 17:00:12 GMT</pubDate>
            <atom:updated>2022-03-29T09:14:12.699Z</atom:updated>
            <content:encoded><![CDATA[<h3>Creating a Microsoft Independent Connector — step by step guide for WorldTime API</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C0YXcemgr3nGkX8Ki8eFZQ.jpeg" /></figure><p>In our world, easy integration of distributed systems — let it be third party or not — is a great advantage for businesses, given it enables reuse of already tested, trusted and dedicated services without the need to build and maintain your own solution.</p><p>Power Platform connectors are wrapper solutions from Microsoft to make REST APIs available for low-code platforms so that end users without any coding knowledge could automate various business cases through clicks, e.g.: Send an email summary report and push notification of daily twitter mentions of my own hashtag.</p><h3>What is an independent connector?</h3><p>To promote adoption, Microsoft delivers a vast and growing number of connectors available out-of-the-box when signing up for Power Automate or Power Apps — these wrappers are maintained directly by Microsoft, kept up to date and reflect a structured way to communicate with the end services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*LvEpFE5qF1_0qRT_ZxQ8hg.png" /></figure><p>In case there is a service not yet available, you may directly use the generic “HTTP Connector” to communicate with your desired endpoint, however choosing this route you will lose governance possibilities, e.g.: restrict given finance services to be used only together with each other or easy overview where SAP services are targeted.</p><p>Better approach is to build <a href="https://docs.microsoft.com/en-us/connectors/custom-connectors/">Custom Connector</a> for the not available target services and maintain the wrapper as your own resource, sharing it if needed with various users. <a href="https://docs.microsoft.com/en-us/connectors/custom-connectors/submit-certification">Independent Connectors</a> are taking this even a step further, making your own connector not only available on a per user basis, but rather for the whole Microsoft community, while taking ownership of it and receiving best practice guidance from Microsoft Engineers. Let’s take a look, how it goes - through my own experience!</p><h3>Building your custom connector</h3><p><strong>First, identify your target.</strong> For me, this will be the <a href="http://worldtimeapi.org/">WorldTimeAPI</a>, providing global time zone relevant information through a public endpoint — compared to the <a href="https://developers.google.com/maps/documentation/timezone/usage-and-billing">Google solution</a> only available through pay-as-you-go model. If you are interested in more custom examples, check out my other posts on:</p><ul><li><a href="https://fordosa90.medium.com/a-microsoft-flow-custom-connector-step-by-step-from-scratch-facebook-api-24361ed9bdee">Building my Custom Connector for Facebook</a> from scratch</li><li><a href="https://medium.com/capgemini-microsoft-team/a-microsoft-flow-custom-connector-step-by-step-from-scratch-microsoft-teams-86c3a35f37dc">Building my Custom Connector for Microsoft Teams</a> from scratch</li></ul><p><strong>Second, get familiar with it.</strong> Visit the relevant website, look around for documentation and whether they have an OpenAPI file available. Check if you can test it already through a console or directly in your browser. This is only to make you comfortable with the main requests and responses, to know, what to expect. In my case, my hello world moment was a request in my browser against <a href="http://worldtimeapi.org/api/timezone/Europe/Budapest">http://worldtimeapi.org/api/timezone/Europe/Budapest</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*ulvGFiM0JjaGAMGtQJGw0w.png" /></figure><p><strong>Third, let’s build!</strong> Log in to your Power Automate environment, create a solution and add a new Custom Connector component. <em>I know I know</em>, I am bit old school here, you can do all this directly without leaving the comfort of your Visual Studio Code, but bear with me, only intending to give high level ideas for now. Follow the <a href="https://docs.microsoft.com/en-us/connectors/custom-connectors/define-blank">official doc</a>, the aim here is to put together the minimal viable product (MVP) and have successful test runs with green check marks!</p><p>In case of WorldTimeAPI, there is no need for authentication given it is a public endpoint — so after choosing name and description I can skip ahead to build the various actions. I will be leaving out one of them deliberately: WorldTimeAPI has an endpoint which guesses my local time and time zone based on my IP, however since the connector will be used by cloud services, this does not really make sense to have.</p><h3>Turn it into an Independent Connector!</h3><p><strong>Implement Best Practices</strong>. What differentiates an Independent Connector from an in-house Custom Connector is that it is meant at the end for global availability, and so, needs to be implemented to meet higher standards. Following great guidance found in the documentation <a href="https://docs.microsoft.com/en-us/connectors/custom-connectors/coding-standards">HERE </a>(Coding Standards) and <a href="https://docs.microsoft.com/en-us/connectors/custom-connectors/certification-submission-ip#prepare-and-submit-your-connector-for-certification">HERE</a> (Best Practices), extend your first draft with descriptions, labels and well defined operations. Don’t forget to add meta information about the connector itself! Many of the data you fill out here will greatly improve end user experience when using your connector within a flow.</p><p><strong>Verify again.</strong> Run a test or two with Power Automate to make sure all labels are grammatically correct. This is especially important given Microsoft will use translation services to localize the connector based on text used by you. Check, that the flow responses for the given operations are well structured into various data types instead of simple JSONs and that they are available to be used for subsequent flow actions. Don’t forget to check that all input and output has a full sentence apart from their title, describing their value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*41H3r3LU5WwTofUNHrnX2Q.png" /></figure><p><strong>Export and prepare for submission</strong>. Although you could have a shortcut to obtain the Swagger JSON by exporting the connector in a solution ZIP, in the long run the official path should be followed by installing and using the command line tool PAC, as it also provides static analysis tooling. Follow <a href="https://docs.microsoft.com/en-us/connectors/custom-connectors/certification-submission#step-4-prepare-the-connector-artifacts">instructions </a>for installation of python and paconn. When ready, download your connector with the interactive downloadcommand and don’t forget to run the static validation either:</p><pre>paconn login<br>paconn download<br>paconn validate --api-def [Path of apiDefinition.swagger.json]<br>paconn logout</pre><h3>Start the official process</h3><p><strong>Prepare your repository.</strong> Navigate to the official GitHub repo found <a href="https://github.com/microsoft/PowerPlatformConnectors">HERE </a>and fork it so that you can begin working on your own version. After creating a local clone, don’t forget to create a new branch for yourself based on the DEV branch. It could seem to be a less important step — as anyways you are working against your own fork — however if you intend to work on multiple connectors, this will be a must to not create unwanted dependencies. Follow the additional steps described <a href="https://github.com/microsoft/PowerPlatformConnectors/blob/dev/README.md#creating-a-fork">HERE </a>to set up upstream repo.</p><p><strong>Add modifications</strong>. Create a new folder for your connector, following naming conventions used and add your exported JSON files. This is also the time to create your README file describing on high level the connector, its usage and operations while adding some thoughts about its limitations too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ycOA6Hua9qhsHijkRY_DA.png" /></figure><p><strong>Submit your changes.</strong> The only thing left is to create a commit and when ready, proceeding to a pull request. You will need to attest to various statements regarding your connector and include screenshots to prove that the connector actually works. Microsoft will run automatic checks and involve official reviewers to guide you through the final steps of the process. Be aware, this may take multiple weeks!</p><h3>Fail quickly but gracefully!</h3><p>Now you only need patience to allow Microsoft to finish the approval and deployment process. While waiting, you can go ahead and secure your connector with basic regression tests, since now you have responsibilities for it: always stay ahead of possible hiccups!</p><p>There are many options to set up automated verification (GitHub, Azure DevOps, …) , but I find it somewhat convenient to test my connector with Power Automate itself. My basic solution looks as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*6rRNdxBJKtrVBGNf-_FL-Q.png" /></figure><ul><li>Create a scheduled Power Automate flow</li><li>Set the trigger to be daily at 00:00 UTC — or at your preferred time</li><li>Set up the happy path test cases within a Try block</li><li>Catch the possible errors (error or time out)</li><li>Handle the errors by sending yourself an email notification and summary</li></ul><p>You can even provide direct link to the failed flow run, meaning just within 2 clicks you have already full access to any information you may need in case of an issue:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pplcvEXPbOykOllFMkRxZg.png" /></figure><p><em>Hope you enjoyed these lines and have now a better overview on the topic at hand. Let me know what are your thoughts or what connector are you missing to streamline your daily work?</em></p><p><em>You can find my Custom Connectors</em>:</p><ul><li><em>on GitHub</em>: <a href="https://github.com/fordosa90/power-platform-connectors">https://github.com/fordosa90/power-platform-connectors</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53363666d820" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated audit of Dynamics 365 configuration during pre-sales]]></title>
            <link>https://fordosa90.medium.com/automated-audit-of-dynamics-365-configuration-during-pre-sales-640a0ee6041a?source=rss-13d97174744a------2</link>
            <guid isPermaLink="false">https://medium.com/p/640a0ee6041a</guid>
            <category><![CDATA[powershell]]></category>
            <category><![CDATA[solutions]]></category>
            <category><![CDATA[analysis]]></category>
            <category><![CDATA[dynamics-365]]></category>
            <category><![CDATA[audit]]></category>
            <dc:creator><![CDATA[András Fördős]]></dc:creator>
            <pubDate>Mon, 05 Apr 2021 10:51:34 GMT</pubDate>
            <atom:updated>2021-04-05T10:51:34.004Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZNQh3mEG_a4MVHO4EpNc_g.jpeg" /></figure><p>When responding to a request for proposal (RfP) related to an upgrade or extension project, it is desired to gain insight into the state of existing customization to tailor estimations and identify risks.</p><p>With this post, I will show an organized and rapid way to get those morsels in a repeatable and controlled manner. Pre-requisite is, that either you have access to DEV instance(s)/solution file(s) or the customer is willing to help out with the initial steps.</p><h3>Overview</h3><p>This example process has a dependency on the official static analysis tool called Solution Checker. In case you are not familiar with it, or don’t know how to set up the service, please check the documentation (<a href="https://docs.microsoft.com/en-us/powershell/powerapps/overview?view=pa-ps-latest">LINK</a>). To access the service, you will need a tenant with PowerApps or Dynamics 365 licensing. This could simply be a trial in your preferred region if no production ones are available, after verifying applicable data regulation needs.</p><p>The process has 4 main steps — some skippable depending on the situation — for which I will provide PowerShell snippets to help you get started:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*V8e3vT-2ryrK266Jsr6K-g.png" /></figure><h3>Collect</h3><p>In case no real solution segmentation was practiced beforehand, you may be looking at one single DEV instance with 80+ unmanaged solutions. Even if things look bit healthier, building a fully automated process provides the benefit of eliminating human error. The aim here is to:</p><ul><li>gather all relevant solutions, eg not the Default</li><li>download the solution files</li><li>collect ZIP files into a single location</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b54f304422d6ed42322d294ffa99e5f0/href">https://medium.com/media/b54f304422d6ed42322d294ffa99e5f0/href</a></iframe><p>Alternatively, if the potential customer has already set up source control practices and the decomposed solutions are stored under Git, the above steps can be replaced with the Solution Packager (<a href="https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/compress-extract-solution-file-solutionpackager">LINK</a>) reconstructing the required ZIP files.</p><h3>Analyse</h3><p>As mentioned above, for this example I am using the Solution Checker service to gain valuable insights. When invoked with code and not through the UI, the service provides access to additional settings, such as the rule set to be used.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5f1a2e7c895f80f1f67b0b6dfe1ebeab/href">https://medium.com/media/5f1a2e7c895f80f1f67b0b6dfe1ebeab/href</a></iframe><h3>Merge</h3><p>The output of the analysis service is a ZIP file containing one or more <a href="https://docs.oasis-open.org/sarif/sarif/v2.0/sarif-v2.0.html">SARIF </a>JSON files. There are multiple ways to interact with them, but for the sake of an end-to-end solution, I will be merging the separated reports into one single CSV file, making easier to digest the outcomes.</p><p>To do so, first we need to create an empty CSV with predefined column headers, based on the information we are expecting. This CSV template will be populated by us. The headers I am expecting are described by the Solution Checker documentation (<a href="https://docs.microsoft.com/en-us/powerapps/maker/data-platform/use-powerapps-checker">LINK</a>) with my addition of:</p><ul><li>Report name for audit purposes</li><li>Solution for filtering purposes</li><li>Qualified name, which seemed like an interesting extra from the SARIFs</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/04aeef41eb261d1684685ae034f106ff/href">https://medium.com/media/04aeef41eb261d1684685ae034f106ff/href</a></iframe><h3>Visualize</h3><p>To streamline the final steps, we need to prepare a basic PowerBI report with meaningful visuals and details, based on what you are usually looking for. My basic report looks as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q2LRjnvLqOXkQZ6apWnL7g.png" /></figure><p>Make sure to use the identified CSV template as the input, as simply by swapping it each time, we will have readily available visualization of the analysis at our disposal without any extra effort.</p><p>Aim to use visuals, which are informative even when drilling down on any of the cards, mixing well the dynamic and static capabilities of PowerBI reports.</p><h3>Additional thoughts</h3><ul><li><strong>Code analysis</strong>: naturally, the above process can be extended or replaced with different code analysis tools and checks (eg SonarQube, JSLint) to enhance the power of the report - the above flow is just the basic skeleton to gain the first morsels</li><li><strong>Tooling</strong>: the given examples used PowerShell but due to the abundance of available tooling, the concept can be ported and recreated with your preference, eg within a simple Azure DevOps pipeline</li><li><strong>Dependencies</strong>: I have built upon the Microsoft.Xrm.Data.PowerShell and Microsoft.PowerApps.Checker.Powershell modules, but you can swap them or even replace with your own ones to interact with APIs, if there are limiting restrictions</li><li><strong>Reporting</strong>: I am using PowerBI due to my predilection and that it fits well with the Microsoft stack, but yet again, the desired dashboard can be recreated in any other tool or service, if it gives you the required flexibility with decoupling and swapping inputs within seconds</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=640a0ee6041a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First steps towards Natural Language Processing with PowerShell]]></title>
            <link>https://fordosa90.medium.com/first-steps-towards-natural-language-processing-with-powershell-3131e9407979?source=rss-13d97174744a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3131e9407979</guid>
            <category><![CDATA[powershell]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[spanish]]></category>
            <dc:creator><![CDATA[András Fördős]]></dc:creator>
            <pubDate>Mon, 19 Nov 2018 14:01:51 GMT</pubDate>
            <atom:updated>2019-09-05T12:45:39.316Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hhZnkcmCg_GocLprg6Gx3g.jpeg" /></figure><p>I have moved to Madrid (Spain) at the start of this month, and — apart from the usual struggles with changing countries — this introduced a kind of new challenge to my life: <strong>the Spanish language</strong>.</p><p>You see, I speak fluent Hungarian, English, German and some basic French, but quite literally, to get my daily bread in the local <em>alimentación, </em>none of these help, not even in the center of Madrid.</p><p>So, I thought about <strong>challenging myself to learn conversational Spanish in one month — </strong>but why not expand my knowledge of the Microsoft stack in the same time? <em>Three new topics (Spanish, NLP, PowerShell), here I come!</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c348e9219500eca075548233af711845/href">https://medium.com/media/c348e9219500eca075548233af711845/href</a></iframe><h3>Theory</h3><p>When facing a new language, sooner or later we have to learn a fair amount of words to create the base of our own vocabulary. While I know, that my brain works very good with flashcards if I want to memorize something, I still need to have a source of information for those cards.</p><p>As I have a given time constraint, I don’t want to take the scenic route for now, like in usual Hungarian language classes: learning words grouped around topics such as foods, then hobbies, then sports, then <em>experimental particle deposition in wind tunnel</em>s — wait what?</p><p>There exist various studies, but in one they agree: usually 1000–1200 words make up almost our entire daily conversations, so I intend to learn them first. Here fits natural language processing into the picture, for which I need to supply a fair amount of Spanish text. Enter my savior: the Gutenberg project.</p><h4>Preparing the text</h4><p>After acquiring the data, it has to be loaded to PowerShell. Conveniently the Get-Content cmdlet is able to read more files with just one line of code, so all the documents can be placed into a single folder before start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*ErFUi8KQVepQ6vTlpcdJQQ.png" /></figure><p>Based on source, the raw data can contain a lot of additional noise. It can be HTML tags and timing markings, or just page numbers and empty lines. To gain a workable text body, initial cleaning should be done and the easiest way to do it is with Regular Expressions.</p><blockquote>For the sake of my beginner experiment I am not looking for a generic or dynamic solution — I value more my time for now. Simply, I apply specific cleaning based on knowledge of my chosen data source!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*VHAR9ZSbPL6XaFXHzWBj6A.png" /></figure><h4>Cleaning the text</h4><p>Now, the data has been refined, but that does not mean it is ready for analytics: it still holds punctuation marks and special characters. And thread carefully, as this is a language dependent topic now!</p><p>The French language uses special no-break spacing together with several punctuation characters, and guillemets instead of quote marks. On the other hand, in English, the apostrophe is helping the omission of certain letters and sounds or it indicates possession.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*Gxx3k05_su-MTn5uAE0fDA.png" /></figure><blockquote>I am applying a basic regex to remove almost everything, without exceptions. I know, it generates some inaccuracy, but based on my guesstimation the leftover orphaned word chunks will not influence my top 1000 list, not in Spanish. I may however be wrong.</blockquote><h4>Word segmentation</h4><p>After achieving a relatively good quality of continuous text, it has to be separated into words, to gain all the building blocks. Mind the small steps: not into individual words, just words, as keeping the statistical information is important! Simply, splitting the text on the white spaces will do, but only after removing the newly generated additional ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*8DKIEzV91PhbrrlSWGzilQ.png" /></figure><blockquote>To have a different view on your status, I recommend to try sorting, so you can quickly validate your current output. Doing this, I have discovered, that I have forgotten to normalize the words: capital letters! Fix this with using the ToLower() method.</blockquote><h4>Analytics</h4><p>The main goal of this experiment was to determine the most used words, so the next steps are clear:</p><ul><li>The words have to be grouped by their form</li><li>Sorted by their number of appearance</li><li>The resulting collection has to be cut, to take the most used N words</li><li>The generated list should be saved to a file at the end</li></ul><blockquote>This could be done with a reporting tool (Excel, Power BI, etc.), though my second goal was to learn the basics of PowerShell, so I keep pushing forward. Validating my results shows, that I need to do another cleaning as I have spaces and numbers left — numbers had to stay until now due to names like “K9” or “R2-D2”.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*HAf52RC8lxM5gbB5M49Etw.png" /></figure><h4>Optimization</h4><p>Although I have found my results appealing —doing a quick smoke test with Notepad++ search functionality — I have had some doubts: it shouldn’t be this simple. Processing a full 491-page-long book confirms my doubts: my script is indeed terribly slow, there is a lot to improve!</p><p>After sitting down and taking time to read various blog posts and documentations on the pipeline, script blocks, aliases, foreach vs. Foreach-Object and more, I see my newbie mistakes.</p><p><em>That said, I will leave my script here as it is, and challenge YOU to try and optimize it! If you are a beginner just like me, as a first step try to figure out how you want to measure the pipeline, and validate, which blocks are causing the traffic jam. Should the pipeline even stay, or it has to go?</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/454fe2c8eaadad2f4a2f401f18e2ef4b/href">https://medium.com/media/454fe2c8eaadad2f4a2f401f18e2ef4b/href</a></iframe><h4>Limitations, Points of improvements</h4><p>The presented approach has many trade-offs, but still provides a good starting point. Some of my concerns:</p><ul><li><strong>Stemming</strong>: benefits of vocabulary versus word forms. Without reducing the words to their root, I could possibly end up with a list of 1000 inflected ones, made out of only 200 stems and their modified forms. Nice touch would also be lemmatisation.</li><li><strong>Part of Speech</strong>: due to the method of picking the most used words, I could theoretically end up without a single verb. In that case — does not matter how many words I gain, and how big percent of the language do they cover — I would be unable to understand anything correctly, or even order a beer.</li><li><strong>Domain: </strong>the words gained are extremely dependent on the source. I may end up with a list of technical terms or domain specific words. Although some modern fictions are good to boost up vocabulary, it’s not practical to have my first 1000 words of a language to be related to political intrigue <em>(Game of Thrones)</em></li><li><strong>Names</strong>: based on the raw data, the text may contain some names too. It can be the name of the protagonist — especially if he/she uses illeism, or the city, where the events of the book are played. However, having <em>“Poirot”</em>, <em>“Groot”</em> and <em>“Ankh-Morpork”</em> in your top 50 may push out some important adjectives</li></ul><blockquote><strong>Extras</strong>: typo handling during cleanup, loosing names through normalization (Apple &gt; apple), translating common abbreviations, memory consumption while processing large data sets, etc. The list can be quite long</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*tMaLpUBzfajgOtjHtIi9-w.png" /></figure><h3>Conclusion</h3><p>My first observation is, that I should have started sooner with PowerShell. It is a very strong automation tool and a definite must in the Microsoft Cloud world. It is truly something, which I intend to explore further. That said, there is a reason, why it is not a commonly used tool for NLP: the community has already created tons of libraries and toolkits for Python, and nobody likes to reinvent the wheel.</p><p>As I started my dive into NLP, my mind has wandered into new areas with every single article and blog that I have read. Without question this is a very big and complex topic, which brought me to my second observation: reinventing the wheel. After I have put together my own list for <strong>Points of Improvements</strong>, I have read about Word Embedding and Text Vectors, which made me rethink, whether I really want to spend time in PowerShell to create a Spanish stemming algorithm. I’m not saying, that it will never happen, but it is not my next step for now.</p><p>And as for my challenge to learn conversational Spanish within a month. I am still optimistic, though probably I should use existing resources instead of creating new ones. This was a very good challenge to understand the specific characters used in written Spanish or to learn on stemming algorithm and how it connects/differs to the real Spanish grammar. New knowledge is rarely useless!</p><p>Finally, for vocabulary, there are amazing flash card collections available online for free — though they somehow also differ in their top 1000, so be a little bit picky ;)</p><h3>Links and materials</h3><ul><li><a href="https://www.gutenberg.org/browse/languages/en">Gutenberg project: Lot of free books in many languages</a></li><li><a href="https://www.pluralsight.com/courses/python-natural-language-processing">Pluralsight: Getting started with Natural Language Processing</a></li><li><a href="https://en.wikipedia.org/wiki/Punctuation">Wikipedia: Punctuation</a></li><li><a href="https://github.com/snowballstem">Snowball source code: language stemming and collection of algorithms</a></li><li><a href="http://jkorpela.fi/html/french.html">HTML authoring in French: basic typography rules</a></li><li><a href="https://www.grammarly.com/blog/apostrophe/">The rules of apostrophe in English</a></li><li><a href="https://www.red-gate.com/simple-talk/sysadmin/powershell/ins-and-outs-of-the-powershell-pipeline/">Let’s understand the PowerShell Pipeline</a></li><li><a href="https://www.memrise.com/course/203799/5000-most-frequent-spanish-words/">Flashcards: 5000 most frequent Spanish words</a></li><li><a href="http://www.nltk.org/">The Natural Language Toolkit for Python</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3131e9407979" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Capgemini Dynamics team recommended articles // September 2018]]></title>
            <link>https://medium.com/capgemini-microsoft-team/capgemini-dynamics-team-recommended-articles-september-2018-e2493f164a16?source=rss-13d97174744a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2493f164a16</guid>
            <category><![CDATA[microsoft-dynamics-crm]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[dynamics-365]]></category>
            <category><![CDATA[dynamics-crm]]></category>
            <dc:creator><![CDATA[András Fördős]]></dc:creator>
            <pubDate>Mon, 01 Oct 2018 11:06:06 GMT</pubDate>
            <atom:updated>2018-10-04T21:39:38.995Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*soGZUy9EF31IeedqRcF1hA.jpeg" /></figure><p>Here is our selection of recommended articles, which excited the team during the last two months! Do not forget to follow us on Medium to get our latest blog posts.</p><h4>Microsoft Official</h4><ul><li><a href="https://powerapps.microsoft.com/en-us/blog/powerapps-enterprise-deployment-whitepaper/">PowerApps and Flow governance and deployment white paper</a></li><li><a href="https://blogs.msdn.microsoft.com/crm/2018/08/31/announcing-dynamics-365-for-marketing-august-2018-update/">2018 August Update for Dynamics 365 for Marketing</a></li><li><a href="https://flow.microsoft.com/en-us/blog/october-2018-update/">Solution management and more for Flow in the October update</a></li></ul><h4>Dynamics 365</h4><ul><li><a href="http://blogs.infostrat.com/2018/09/devops-for-microsoft-dynamics.html">A basic DevOps setup for Dynamics 365</a></li><li><a href="https://blogs.msdn.microsoft.com/premier_developer/2018/08/20/continuous-integration-deployment-and-test-automation-for-dynamics-crm/">An example CI/CD workflow with Dynamics 365</a></li><li><a href="https://dynamicsninja.blog/2018/09/30/virtual-entities-part-1-odata-v4/">Virtual Entities: a starting example</a></li></ul><h4>Microsoft Cloud</h4><ul><li><a href="https://powerapps.microsoft.com/en-us/blog/custom-admin-dashboard-with-the-powerapps-admin-connectors/">Governance and PowerApps: the Admin Connectors and example dashboards</a></li><li><a href="https://flow.microsoft.com/en-us/blog/admin-analytics/">Introducing Power platform Admin analytics: check how your organization is using Flow</a></li><li><a href="http://develop1.net/public/post/2018/07/17/my-favourite-powerapps-dynamics-ce-features-in-the-october-2018-release">Scott Durow’s picks from the October release</a></li><li><a href="http://survivingcrm.com/2018/08/the-end-is-near-for-dynamics-365-customer-driven-updates/">Jukka Niiranen on changes related to how Dynamics updates</a></li></ul><h4>Loosely coupled</h4><ul><li><a href="https://news.microsoft.com/uploads/prod/sites/507/2018/09/IGNITEBOOKOFNEWS-5ba8f830261da.pdf">Microsoft Ignite 2018: bite size summaries</a></li><li><a href="https://takacsmark.com/what-is-docker-what-it-can-do-for-you/">Prompt introduction to Docker — a leading open-source container platform</a></li></ul><h4><strong>Capgemini Dynamics Team</strong></h4><ul><li><a href="https://medium.com/capgemini-dynamics-365-team/transpile-typescript-modules-for-dynamics-365-simply-using-rollup-js-9fb0f4f3eebd">Transpile TypeScript modules for Dynamics 365 simply using rollup.js</a></li><li><a href="https://medium.com/capgemini-dynamics-365-team/solution-track-be-aware-of-dynamics-patches-and-updates-of-your-instance-5b2bbd729ab7">Solution Track — Be aware of Dynamics patches and updates of your instance</a></li><li><a href="https://medium.com/capgemini-dynamics-365-team/dynamics-365-web-api-postman-collection-abfb259f9eae">Dynamics 365 Web API Postman Collection</a></li><li><a href="https://www.linkedin.com/feed/update/urn:li:activity:6445996754155368448">Dynamics 365 v.9 WebAPI — authentication examples in JAVA</a></li><li><a href="https://www.linkedin.com/feed/update/urn:li:activity:6444876105265475584">Dynamics 365 v.9 WebAPI — authentication examples in nodeJS</a></li><li><a href="https://medium.com/capgemini-dynamics-365-team/microsoft-dynamics-365-upgrade-eba9bf29ad4c">Microsoft Dynamics 365 upgrade</a></li><li><a href="https://medium.com/capgemini-dynamics-365-team/a-microsoft-flow-custom-connector-step-by-step-from-scratch-microsoft-teams-86c3a35f37dc">A Microsoft Flow Custom Connector step-by-step from scratch: Microsoft Teams</a></li><li><a href="https://medium.com/capgemini-dynamics-365-team/automate-ui-testing-for-dynamics-365-using-easyrepro-and-a-vsts-build-agent-f15c2a662b38">Automate UI testing for Dynamics 365 using EasyRepro and a VSTS Build Agent</a></li><li><a href="https://medium.com/capgemini-dynamics-365-team/dynamics-365-v9-verify-logged-in-user-security-role-using-typescript-2de52f2ef04e">Dynamics 365 V9 — Verify Logged In User Security Role using TypeScript</a></li></ul><p>What do you reckon? <strong>Share your thoughts about the list!</strong> Have you found or read any other great or useful articles during these two months? What are the topics and subjects driving your business these days?</p><p>Here is our previous collection: <a href="https://medium.com/capgemini-dynamics-365-team/capgemini-dynamics-team-recommended-articles-july-2018-d817a3bdbb2c">LINK</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2493f164a16" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capgemini-microsoft-team/capgemini-dynamics-team-recommended-articles-september-2018-e2493f164a16">Capgemini Dynamics team recommended articles // September 2018</a> was originally published in <a href="https://medium.com/capgemini-microsoft-team">Capgemini Microsoft Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solution Track— Be aware of Dynamics patches and updates of your instance]]></title>
            <link>https://medium.com/capgemini-microsoft-team/solution-track-be-aware-of-dynamics-patches-and-updates-of-your-instance-5b2bbd729ab7?source=rss-13d97174744a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b2bbd729ab7</guid>
            <category><![CDATA[dynamics-365]]></category>
            <category><![CDATA[dynamics-crm]]></category>
            <category><![CDATA[dynamics]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[microsoft-dynamics-crm]]></category>
            <dc:creator><![CDATA[András Fördős]]></dc:creator>
            <pubDate>Fri, 21 Sep 2018 08:20:32 GMT</pubDate>
            <atom:updated>2018-09-21T08:20:32.767Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cetbbEFnEc6nMwN9QIz8AA.jpeg" /></figure><blockquote>“Whenever the people are well-informed, they can be trusted with their own government” — Thomas Jefferson</blockquote><p>Microsoft has started to deliver minor but unannounced continuous updates of the Dynamics platform. Although this is for the sake of evolution, they may <a href="https://medium.com/capgemini-dynamics-365-team/a-tale-of-hidden-dependencies-role-templates-and-event-handlers-the-pain-facts-3c00a6470b32">introduce hidden dependencies</a>, which eventually break otherwise functioning systems or CI pipelines.</p><p>Thankfully, starting with version 9, Dynamics is also being delivered and updated with <a href="https://medium.com/capgemini-dynamics-365-team/traces-of-the-icebreakers-hidden-solutions-of-a-vanilla-dynamics-version-9-465bcdc67ef9">managed solution packages</a>, which are hidden from our eyes!</p><h3>My goal</h3><p>I want to track events whenever someone updates a solution in my instance. I want this tracked and stored within a custom entity in the same instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*egq183cGV0MmzrBB3KstBQ.jpeg" /></figure><blockquote>Your scenario may differ - send an email, push notification to a slack channel, store the audit trail in Excel — but my solution will be applicable for all these cases too!</blockquote><p>My custom entity (<strong>Solution Track</strong>) has the following fields:</p><ul><li><strong>Display Name</strong>: the display name of the updated solution</li><li><strong>Event Date</strong>: date and time when the event happened</li><li><strong>Event Type</strong>: an option set, which provides future extensibility, but for now always set to “Update”</li><li><strong>Unique Name</strong>: the unique name of the updated solution</li><li><strong>Version After</strong>: the new version of the solution after the event</li></ul><h3>The solution</h3><p>Unfortunately, sticking to the “old school” doesn’t help. <a href="https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg328576(v=crm.8)">The supported messages for <strong>Solution </strong>entity</a> only allow to hitchhike Delete and Retrieve messages for plugin, not the Create or Update.</p><p>Digging deeper, checking the <a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk.messages?view=dynamics-general-ce-9">not entity related messages</a>, which indicate <strong>Solution </strong>events (e.g.: ImportSolution, …) we end up with the same result: not available for plugins. Was a good bet because the <a href="https://medium.com/capgemini-dynamics-365-team/what-is-activity-logging-aka-read-audit-and-why-is-it-important-for-a-dynamics-developer-215313b03921">new Activity Logging uses them</a>, though not really detailed.</p><p>Exploring the triggers in MS Flow in more details, we can notice, that both the Create record and Update record triggers are available even with the <strong>Solution </strong>entity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*7ntISsXkpE2RhOB-iQfwPw.png" /></figure><p>So, things to do:</p><ul><li>Navigate to <a href="https://flow.microsoft.com/">https://<em>flow.microsoft.com</em></a></li><li>Your Dynamics licence should already provide access, but change if needed</li><li>Create a new Flow from blank</li><li>Search for Dynamics triggers, and add “When a record is updated”</li><li>Sign in, define your organization and the trigger entity (<strong>Solution</strong>)</li><li>Add the Dynamics action “Create a new record”, and select your custom entity</li><li>Apply dynamic content from the trigger to the attributes (e.g.: Unique Name of the solution)</li><li>Set other attributes (e.g.: for Event Date the utcNow() function)</li><li>Save your flow, and hit “test”. You have to trigger it by updating one of your solutions as can not test with the internal ones</li></ul><h3>Result</h3><p>My Flow was idle for weeks, but at the end of August it started to be busy on one of the Trial instances: my custom entity got populated, as you can see in the first screenshot, so I have queried the back-end too:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sr5Rtl8xdDZAy-zmRYJJoA.png" /></figure><p>One of the many upsides with Flow is, that we can check the Run History. So I did it. During the time I was overseeing my solution, there were two platform updates, which updated some of my internal solutions.</p><p>Opening one of the history records I am able to verify, that it run indeed on an internal solution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*_Pm-Nl6EZwXhdztfBiUbUQ.png" /></figure><h3>Conclusion</h3><p>Elements of the Microsoft Cloud landscape evolves quickly, so keep experimenting! Things, which were previously not possible, turn out to be simple with the new tools: <em>we can hitchhike </em><em>Create and </em><em>Update messages of entities which are not enabled for us in Dynamics!</em></p><p>The solution I have shown here is the bare minimum. Improvement would be to track installation and deletion of Solutions, or send a notification to the system administrator — though the variations are limitless. Also important to note, that a validation step could be useful, as at this state whenever the event is called, we create a new record regardless, whether the solution got updated with a new version.</p><p>The two update batches — which I was notified about — were most probably scheduled ones: <a href="https://support.microsoft.com/en-us/help/2925359/microsoft-dynamics-crm-online-releases">LINK</a>. That said, these service updates are communicated without dates — as being delivered globally — so with seeing the change of an internal solution I could have triggered <strong>a CI build to verify, whether everything is still intact or not</strong>!</p><h3>Reference</h3><ul><li><a href="https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg328576(v=crm.8)">MSFT reference: Supported messages and entities for plugins</a></li><li><a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk?view=dynamics-general-ce-9">MSFT reference: Microsoft.Crm.Sdk.Messages Namespace</a></li><li><a href="https://support.microsoft.com/en-us/help/2925359/microsoft-dynamics-crm-online-releases">MSFT reference: List of Dynamics Online service updates</a></li><li><a href="https://medium.com/capgemini-dynamics-365-team/a-tale-of-hidden-dependencies-role-templates-and-event-handlers-the-pain-facts-3c00a6470b32">Dynamics: Hidden dependencies and why they hurt</a></li><li><a href="https://medium.com/capgemini-dynamics-365-team/traces-of-the-icebreakers-hidden-solutions-of-a-vanilla-dynamics-version-9-465bcdc67ef9">Dynamics: version 9 autopsy and the internal solutions</a></li><li><a href="https://medium.com/capgemini-dynamics-365-team/what-is-activity-logging-aka-read-audit-and-why-is-it-important-for-a-dynamics-developer-215313b03921">Quick Activity Logging summary</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b2bbd729ab7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capgemini-microsoft-team/solution-track-be-aware-of-dynamics-patches-and-updates-of-your-instance-5b2bbd729ab7">Solution Track— Be aware of Dynamics patches and updates of your instance</a> was originally published in <a href="https://medium.com/capgemini-microsoft-team">Capgemini Microsoft Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>