<?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:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[CRM Tech Bits]]></title><description><![CDATA[Dynamics and General Devie things]]></description><link>http://www.crmtechbits.com/</link><image><url>http://www.crmtechbits.com/favicon.png</url><title>CRM Tech Bits</title><link>http://www.crmtechbits.com/</link></image><generator>Ghost 5.8</generator><lastBuildDate>Tue, 28 Jul 2026 15:26:07 GMT</lastBuildDate><atom:link href="http://www.crmtechbits.com/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Cannot use child workflow because child workflows only support embedded connections]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>Recently we have been playing with Child Flows in Power Automate (Microsoft Flow) as part of a solution with Dynamics 365 however when we selected the child flow to be executed we received the error<br>
&quot;The workflow with id &apos;9017e2ce-1501-ea11-a811-000d3a6aaf7c&apos;, name PowerApp -&gt; Update a record</p>]]></description><link>http://www.crmtechbits.com/cannot-use-child-workflow-because-child-workflows-only-support-embedded-connections/</link><guid isPermaLink="false">616d12cd3265d500015d8202</guid><category><![CDATA[Dynamics 365]]></category><category><![CDATA[Microsoft Flow]]></category><category><![CDATA[Power Automate]]></category><category><![CDATA[Common Data Service]]></category><dc:creator><![CDATA[Brent Howard]]></dc:creator><pubDate>Mon, 11 Nov 2019 22:49:26 GMT</pubDate><media:content url="http://www.crmtechbits.com/content/images/2019/11/Run-Child-Flow2-2.png" medium="image"/><content:encoded><![CDATA[<!--kg-card-begin: markdown--><img src="http://www.crmtechbits.com/content/images/2019/11/Run-Child-Flow2-2.png" alt="Cannot use child workflow because child workflows only support embedded connections"><p>Recently we have been playing with Child Flows in Power Automate (Microsoft Flow) as part of a solution with Dynamics 365 however when we selected the child flow to be executed we received the error<br>
&quot;The workflow with id &apos;9017e2ce-1501-ea11-a811-000d3a6aaf7c&apos;, name PowerApp -&gt; Update a record cannot be used as a child workflow because child workflows only support embedded connections.&quot;<br>
<img src="/content/images/2019/11/Workflow-Error.png" alt="Cannot use child workflow because child workflows only support embedded connections" loading="lazy"></p>
<p>This stumped us a bit. We tried to specify the environment as (current) or the specific environment with no luck.<br>
<img src="/content/images/2019/11/Flow-Current-Environment.png" alt="Cannot use child workflow because child workflows only support embedded connections" loading="lazy"></p>
<p>After a fair amount of pulling our hair out, my colleague Lachlan worked out that the issue was caused by the type of CDS connector selected.</p>
<p>It turns out that when you create a flow from within a Solution there are now two different Common Data Service Actions and if you don&apos;t type in the search to filter you can&apos;t see both connectors.</p>
<p><img src="/content/images/2019/11/Common-Data-Service-Trigger.png" alt="Cannot use child workflow because child workflows only support embedded connections" loading="lazy"></p>
<p>Be careful to select the &quot;Common Data Servce (current environment)&quot; within your child flow to make it compatible.</p>
<p>Below you can see the differences with between the Standard CDS Action and the Current Environment CDS Action.<br>
<img src="/content/images/2019/11/CDS-Versions.png" alt="Cannot use child workflow because child workflows only support embedded connections" loading="lazy"></p>
<p>This is extremely deceptive and hopefully Microsoft will come up with a better solution as I can see this tripping up a lot of people.</p>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Logic Apps Cheat Sheet]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>This is more for me to keep track of ways to work with Logic Apps &amp; Flow. I will be updating this as I go.</p>
<h1 id="dates">Dates</h1>
<p>Daniel over at <a href="https://www.o365dude.com/2017/05/01/working-with-dates-times-in-microsoft-flow/">o365Dude.com</a> has some good information on basic date operations.</p>
<h3 id="convertingdatesfromutc">Converting Dates from UTC</h3>
<p>convertFromUtc(utcNow(),&apos;AUS Eastern Standard Time&</p>]]></description><link>http://www.crmtechbits.com/logic-apps-cheat-sheet/</link><guid isPermaLink="false">616d12cd3265d500015d81f9</guid><dc:creator><![CDATA[Brent Howard]]></dc:creator><pubDate>Sun, 14 Jul 2019 07:33:00 GMT</pubDate><media:content url="http://www.crmtechbits.com/content/images/2019/07/LogicApp-CheatSheetv2.png" medium="image"/><content:encoded><![CDATA[<!--kg-card-begin: markdown--><img src="http://www.crmtechbits.com/content/images/2019/07/LogicApp-CheatSheetv2.png" alt="Logic Apps Cheat Sheet"><p>This is more for me to keep track of ways to work with Logic Apps &amp; Flow. I will be updating this as I go.</p>
<h1 id="dates">Dates</h1>
<p>Daniel over at <a href="https://www.o365dude.com/2017/05/01/working-with-dates-times-in-microsoft-flow/">o365Dude.com</a> has some good information on basic date operations.</p>
<h3 id="convertingdatesfromutc">Converting Dates from UTC</h3>
<p>convertFromUtc(utcNow(),&apos;AUS Eastern Standard Time&apos;,&apos;yyyy-MM-dd&apos;)</p>
<h3 id="gettingthedaysbetween2dates">Getting the Days between 2 dates</h3>
<p>I found this in the answer from leyburn19 on the <a href="https://powerusers.microsoft.com/t5/General-Flow-Discussion/Subtract-dates/m-p/127105#M13694">Power Users forum</a><br>
div(sub(ticks(convertFromUtc(utcNow(),&apos;AUS Eastern Standard Time&apos;, &apos;yyyy-MM-dd&apos;)),ticks(convertFromUtc(variables(&apos;FromDate&apos;),&apos;AUS Eastern Standard Time&apos;, &apos;yyyy-MM-dd&apos;))),864000000000)</p>
<h3 id="addingdaystodates">Adding Days to Dates</h3>
<p>addDays(utcNow(),1,&apos;yyyy-MM-dd&apos;)</p>
<h3 id="getthedayoftheweek">Get the Day of The Week</h3>
<p>dayOfWeek(convertFromUtc(utcNow(),&apos;AUS Eastern Standard Time&apos;, &apos;yyyy-MM-dd&apos;))</p>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Dynamics 365 Tooling]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>This won&apos;t be a comprehensive list, it is more about what I use day to day. That said I am keen to hear if there are any that I have missed that I should be using.</p>
<ol>
<li>First things first, XrmToolbox. It is a non start without this amazing</li></ol>]]></description><link>http://www.crmtechbits.com/dynamics-365-tooling/</link><guid isPermaLink="false">616d12cd3265d500015d81fe</guid><dc:creator><![CDATA[Brent Howard]]></dc:creator><pubDate>Thu, 11 Jul 2019 22:43:07 GMT</pubDate><media:content url="http://www.crmtechbits.com/content/images/2019/07/DynamicsTooling.png" medium="image"/><content:encoded><![CDATA[<!--kg-card-begin: markdown--><img src="http://www.crmtechbits.com/content/images/2019/07/DynamicsTooling.png" alt="Dynamics 365 Tooling"><p>This won&apos;t be a comprehensive list, it is more about what I use day to day. That said I am keen to hear if there are any that I have missed that I should be using.</p>
<ol>
<li>First things first, XrmToolbox. It is a non start without this amazing suite of tools. This was built by Tanguy Touzard and has an established communitity behind it developing an array of plugins.</li>
</ol>
<p>Download: <a href="https://www.xrmtoolbox.com/">https://www.xrmtoolbox.com/</a></p>
<p>Once you have it downloaded and extracted I would recommend as a minimum the following plugins.</p>
<ul>
<li>Early Bound Generator</li>
<li>FetchXML Builder</li>
<li>Metadata Document Generator</li>
<li>Plugin Registration</li>
<li>Plugin Trace Viewer</li>
<li>Ribbon Workbench 2016</li>
<li>View Layout Replicator</li>
<li>Webresources Manager</li>
</ul>
<p>There are pleanty more and it should be your first point of call when trying to do something. Chances are if you need to do it someone else has had to as well.</p>
<ol start="2">
<li>Microsoft Dynamics 365 CE Tools, are available for download via NuGet. This includes tools that used to be in the SDK.</li>
</ol>
<ul>
<li>Code Gneration</li>
<li>Configuration Migraiton</li>
<li>Package Deployer</li>
<li>Plug-in Registration</li>
<li>Solution Packager</li>
</ul>
<p>Microsoft have a powershell script you can use to download and extract the tools.</p>
<p>Download: <a href="https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/download-tools-nuget#download-tools-using-powershell">https://docs.microsoft.com</a></p>
<ol start="3">
<li>Level up for Dynamics CRM/365, is an extension for Chrome to do some awesome in browser. Some of the big ones for me are</li>
</ol>
<ul>
<li>Logical Names |</li>
<li>God Mode</li>
<li>Record Properties</li>
<li>Record URL</li>
<li>Record ID</li>
<li>Show Optionset Values</li>
</ul>
<p>There are a heap more it can do which you can check out at <a href="https://github.com/rajyraman/Levelup-for-Dynamics-CRM">https://github.com/rajyraman/Levelup-for-Dynamics-CRM</a></p>
<p>Download: <a href="https://chrome.google.com/webstore/detail/level-up-for-dynamics-crm/bjnkkhimoaclnddigpphpgkfgeggokam">Chrome Web Store</a></p>
<ol start="4">
<li>D365 Developer Extensions, is an extention for Visual Studio 2015 / 2017 and it allows to download, develop and deploy web resources from within Visual Studio as well as 1 click deploy of plug-ins as well as some templates.</li>
</ol>
<p>Download: <a href="https://marketplace.visualstudio.com/items?itemName=JLattimer.D365DeveloperExtensions">https://marketplace.visualstudio.com/</a></p>
<ol start="5">
<li>CRM REST Builder, is another awesome tool for the belt from Jason Lattimer. It is a solution you can import into Dynamics 365 which allows you to build the JavaScript web requests using either the 2011 or Wab API endpoints.</li>
</ol>
<p>This solution will save your hair and make you not completely hate the client side Web Api and all it&apos;s qwerks.</p>
<p>For more information check out Jason Lattimers Github <a href="https://github.com/jlattimer/CRMRESTBuilder">https://github.com/jlattimer/CRMRESTBuilder</a></p>
<p>Download: <a href="https://github.com/jlattimer/CRMRESTBuilder/releases">https://github.com/jlattimer/CRMRESTBuilder/releases</a></p>
<p>As I said, if there are any that i have missed let me know. I will continue to update this as I find others.</p>
<p>Cheers,<br>
Brent</p>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Unable to import solutions Dynamics 365 V9.1 (Error Code 8004801a)]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>Came across another fun issue today with Dynamics 365 V9.1 that caused me a small inconvenience.</p>
<p>Looks like there is another attribute being added to the FetchXML on new views that isn&apos;t in the correct format to be supported in the Schema for import.</p>
<p>This leads to</p>]]></description><link>http://www.crmtechbits.com/unable-to-import-solutions-dynamics-365-v9-1/</link><guid isPermaLink="false">616d12cd3265d500015d81fa</guid><category><![CDATA[Dynamics 365]]></category><category><![CDATA[Bug]]></category><category><![CDATA[WorkAround]]></category><dc:creator><![CDATA[Brent Howard]]></dc:creator><pubDate>Tue, 13 Nov 2018 06:17:46 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p>Came across another fun issue today with Dynamics 365 V9.1 that caused me a small inconvenience.</p>
<p>Looks like there is another attribute being added to the FetchXML on new views that isn&apos;t in the correct format to be supported in the Schema for import.</p>
<p>This leads to this.<br>
<img src="/content/images/2018/11/Solution-Cannot-Be-Imported-1.png" alt="Solution-Cannot-Be-Imported-1" loading="lazy"></p>
<p>On closer inspection you can see there is an error about the &apos;options&apos; attribute being invalid.<br>
<img src="/content/images/2018/11/Schema-Validation-Failed.png" alt="Schema-Validation-Failed" loading="lazy"></p>
<p>The simplest fix for this is to extract the solution and find the &apos;options=&quot;&quot;&apos; string.<br>
<img src="/content/images/2018/11/Xml-Failing.png" alt="Xml-Failing" loading="lazy"></p>
<p>Remove it, save, compress and upload.<br>
<img src="/content/images/2018/11/Xml-Fixed.png" alt="Xml-Fixed" loading="lazy"></p>
<p>If someone knows why this is happening I would love to know. I have raised an issue with Microsoft and will wait to hear what they say.</p>
<p>Update: 15-Nov-18</p>
<p>Response from Microsoft support</p>
<p><em>We have identified the issue to be a cause due to the Fetch.XSD property which doesn&#x2019;t  support empty query hint: options=&quot;&quot; and whenever  UI support QueryHint,  this makes the view fetchXML an Empty options: &lt;Fetch options=&quot;&quot; ... and that  break the fetch.xsd validation when perform solution import.</em></p>
<p><em>In order to avoid the solution imports which already has views that contains empty options, we are going to enable platform validation to support empty queryhint, the fix is currently in progress and gets deployed to have a permanent fix on the issue.</em></p>
<p>So now we wait.</p>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Supported Workaround for the Chrome Quick Create bug]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>While researching the <a href="https://www.crmtechbits.com/quick-create-form-not-working-in-chrome/">Chrome Quick Create Bug</a> I came across a post to enable &quot;Legacy Form Rendering&quot; that it would work however it causes other issues.</p>
<p>This morning while reading through some other articles it kept coming up. This spurred me to actually try it and lo and</p>]]></description><link>http://www.crmtechbits.com/supported-workaround-for-the-chome-quick-create-bug/</link><guid isPermaLink="false">616d12cd3265d500015d81f7</guid><category><![CDATA[Dynamics 365]]></category><category><![CDATA[Bug]]></category><category><![CDATA[WorkAround]]></category><dc:creator><![CDATA[Brent Howard]]></dc:creator><pubDate>Thu, 05 Apr 2018 20:56:06 GMT</pubDate><media:content url="http://www.crmtechbits.com/content/images/2018/04/SystemSettings-LegacyRendering-1.png" medium="image"/><content:encoded><![CDATA[<!--kg-card-begin: markdown--><img src="http://www.crmtechbits.com/content/images/2018/04/SystemSettings-LegacyRendering-1.png" alt="Supported Workaround for the Chrome Quick Create bug"><p>While researching the <a href="https://www.crmtechbits.com/quick-create-form-not-working-in-chrome/">Chrome Quick Create Bug</a> I came across a post to enable &quot;Legacy Form Rendering&quot; that it would work however it causes other issues.</p>
<p>This morning while reading through some other articles it kept coming up. This spurred me to actually try it and lo and behold it works however depending on the rest of your platform as above it could cause other issues so use with caution.</p>
<p>To enable Legacy Form Rendering go to Settings &gt; Administration<br>
<img src="/content/images/2018/04/Settings-Administration.png" alt="Supported Workaround for the Chrome Quick Create bug" loading="lazy"></p>
<p>Then select System Settings<br>
<img src="/content/images/2018/04/Administration-SystemSettings.png" alt="Supported Workaround for the Chrome Quick Create bug" loading="lazy"></p>
<p>The scroll down the General tab until you find &quot;Use legacy form rendering&quot;<br>
<img src="/content/images/2018/04/SystemSettings-LegacyRendering.png" alt="Supported Workaround for the Chrome Quick Create bug" loading="lazy"></p>
<p>Set it to yes, click ok and refresh.</p>
<p>I have tested this in V8.2 and V9.0 and it works.</p>
<p>Hope this helps.</p>
<p>Cheers,<br>
Brent</p>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Quick Create Form not working in Chrome]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>An issue got raised to me that the Quick Create forms we not working intermittenly.</p>
<p>I took a quick look around I found the the quick create forms would work the first time they were used but then failed to load for every use after that.</p>
<p>After searching around for</p>]]></description><link>http://www.crmtechbits.com/quick-create-form-not-working-in-chrome/</link><guid isPermaLink="false">616d12cd3265d500015d81f5</guid><category><![CDATA[Dynamics 365]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[Bookmarklet]]></category><category><![CDATA[Bug]]></category><dc:creator><![CDATA[Brent Howard]]></dc:creator><pubDate>Thu, 29 Mar 2018 23:47:50 GMT</pubDate><media:content url="http://www.crmtechbits.com/content/images/2018/03/Title-QuickCreate2.png" medium="image"/><content:encoded><![CDATA[<!--kg-card-begin: markdown--><img src="http://www.crmtechbits.com/content/images/2018/03/Title-QuickCreate2.png" alt="Quick Create Form not working in Chrome"><p>An issue got raised to me that the Quick Create forms we not working intermittenly.</p>
<p>I took a quick look around I found the the quick create forms would work the first time they were used but then failed to load for every use after that.</p>
<p>After searching around for others I came across one post in the dynamics community forum <a href="https://community.dynamics.com/crm/f/117/t/272462/">https://community.dynamics.com/crm/f/117/t/272462/</a> however the only fix was to modify a CSS value which isn&apos;t going to work for Online and is always something to avoid even for on premise environments.</p>
<p>I have tested this on V8.1 through to V9.0 with all versions being effected.<br>
<img src="/content/images/2018/03/QuickCreate-V9.0.png" alt="Quick Create Form not working in Chrome" loading="lazy"></p>
<p>This is due to the IFrame which loads the form gets it&#x2019;s height updated to 0px in chrome for some reason.</p>
<p>Should be<br>
<img src="/content/images/2018/03/iframe-Correct.png" alt="Quick Create Form not working in Chrome" loading="lazy"></p>
<p>and is<br>
<img src="/content/images/2018/03/iframe-Bug.png" alt="Quick Create Form not working in Chrome" loading="lazy"></p>
<p>I have 2 approaches to workaround this issue until a proper fix is released however neither of them would be a supported change.</p>
<p>Both solutions use the same JavaScript to modify the DOM and set the height of the iFrame.<br>
The first solution is to create a web resource, where the second is to use a bookmarklet.</p>
<h2 id="webresource">Web Resource</h2>
<p>Create a JavaScript Web Resource and add it to the OnLoad of each Quick Create form that you use.<br>
This the easiest solution to roll out to users.</p>
<script src="https://gist.github.com/schwoi/62f98d7ab5a1a8b515ac9b333333beed.js"></script>
<p>I created a solution with only the above web resource and the quick create forms I wanted to fix.<br>
<img src="/content/images/2018/03/Account-QuickCreate.png" alt="Quick Create Form not working in Chrome" loading="lazy"></p>
<p><img src="/content/images/2018/03/Contact-QuickCreate.png" alt="Quick Create Form not working in Chrome" loading="lazy"></p>
<p>in each of the quick create forms I added the Web Resource to the form properties and called the quick fix function<br>
<img src="/content/images/2018/03/Form-Onload.png" alt="Quick Create Form not working in Chrome" loading="lazy"></p>
<p>Publish the changes and you are done.</p>
<h2 id="bookmarklet">Bookmarklet</h2>
<p>I had some feedback from a customer that didn&apos;t want to deploy any additional web resources into their already complicated environment, especially one with unsupported changes.</p>
<p>So to address this I have used esentially the same JavaScript as before except instead of it being in a web resource it works out of the bookmarks and requires user intervention.</p>
<script src="https://gist.github.com/schwoi/fb56599fbf7906bd9d999580a4e439c0.js"></script>
<p>To do this add the Bookmark Bar to the browser, right click the bookmarks bar and click &quot;Add page...&quot;<br>
<img src="/content/images/2018/03/Bookmarklet-AddPage.png" alt="Quick Create Form not working in Chrome" loading="lazy"></p>
<p>Enter the name of the bookmark, in my case I used &quot;Fix Quick Create&quot; and paste the above javascript into the URL and click save.<br>
<img src="/content/images/2018/03/Bookmarklet-EditBookmark.png" alt="Quick Create Form not working in Chrome" loading="lazy"></p>
<p>Now when you open a quick create form that doesn&apos;t open correctly<br>
<img src="/content/images/2018/03/Bookmarklet-MissingForm.png" alt="Quick Create Form not working in Chrome" loading="lazy"></p>
<p>click the &quot;Fix Quick Create&quot; bookmark and done.<br>
<img src="/content/images/2018/03/Bookmarklet-FixedForm.png" alt="Quick Create Form not working in Chrome" loading="lazy"></p>
<p>I hope this helps.</p>
<p>Cheers,<br>
Brent</p>
<!--kg-card-end: markdown-->]]></content:encoded></item></channel></rss>