<?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 Cloud Architect on Medium]]></title>
        <description><![CDATA[Stories by Cloud Architect on Medium]]></description>
        <link>https://medium.com/@andrewwhitten?source=rss-2dd04ceac8e7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YpbItgnF9Jnta-y8rJYZCw.jpeg</url>
            <title>Stories by Cloud Architect on Medium</title>
            <link>https://medium.com/@andrewwhitten?source=rss-2dd04ceac8e7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 00:44:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andrewwhitten/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[Salesforce LWC Map Control for the Australian New South Wales Government]]></title>
            <link>https://andrewwhitten.medium.com/salesforce-lwc-map-control-for-the-australian-new-south-wales-government-46f556f2209d?source=rss-2dd04ceac8e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/46f556f2209d</guid>
            <category><![CDATA[spatial]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[nsw-government]]></category>
            <category><![CDATA[salesforce-lwc]]></category>
            <category><![CDATA[esri]]></category>
            <dc:creator><![CDATA[Cloud Architect]]></dc:creator>
            <pubDate>Mon, 11 May 2026 22:45:16 GMT</pubDate>
            <atom:updated>2026-05-11T22:45:16.344Z</atom:updated>
            <content:encoded><![CDATA[<p>Use official maps sources from the NSW Government in your Salesforce org with <a href="https://github.com/andrewwhitten/SpatialServicesNswMap">https://github.com/andrewwhitten/SpatialServicesNswMap</a> that uses high quality vector rendering.</p><p>If you are working on an NSW Government or public service Salesforce org, you can now consider using a dedicated NSW map control because:</p><ul><li>Data points on crowd sourced maps such as OpenStreetMaps or Google have the potential for mistakes or malicious tampering</li><li>NSW Spatial Services maps provide authoritative NSW data ideal for related public oriented services</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OnpgnY9hpPFftcsVERBMzQ.png" /></figure><p>The NSW Government provides:</p><ol><li>Maps and map layers <strong>available for public use</strong> — <a href="https://www.nsw.gov.au/about-nsw/nsw-maps">https://www.nsw.gov.au/about-nsw/nsw-maps</a></li><li>Physical address lookup service via NSW Point — <strong>for government use</strong> — <a href="https://point.digital.nsw.gov.au/v3/docs/index.html">https://point.digital.nsw.gov.au/v3/docs/index.html</a></li></ol><p>NSW Point is only available to NSW Government users, and therefore the control also allows you to use the OpenStreetMaps or the default Salesforce address lookup service though Google.</p><p><strong>Development Background</strong></p><p>The control has higher complexity because the controls uses vector maps which are of higher quality than the raster based maps available, however the sandboxed Javascript in LWC is restricted in processing that. The workaround was to embedded a VisualForce Page component inside the LWC component to allow more permissive JavaScript to run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mg_Ip5K2qkz-BoARcaWRNA.png" /><figcaption>Sequence Diagram for Map control</figcaption></figure><p>I have also built around Custom Settings more than Lightning Designer settings since it is likely most people would want one set of configurations for their entire org (map service, address lookup service etc). If you need more granularity then you can refactor and make them Lightning Web Control settings instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eZfS7jG8FwEES1m10OPCxA.png" /></figure><p><strong>Future Roadmap</strong></p><p>Potential updates in future include:</p><ol><li>Add further base maps, such as ariel photography sourced from NSW Spatial</li><li>Install as an unmanaged package</li><li>Other states &amp; territories</li></ol><p><strong>Notes</strong></p><ol><li>This is my own personal project and <strong>not provided, supported or endorsed by the NSW Government in any way</strong></li><li>This control could be used for other Australian states and territories as well as anywhere else offering an Esri compliant map service. You may need to consider a different local address lookup service</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46f556f2209d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setup of Dell UltraSharp U4025QW with Apple MacBook Pro M2 Max]]></title>
            <link>https://andrewwhitten.medium.com/setup-of-dell-ultrasharp-u4025qw-with-apple-macbook-pro-m2-max-02db860ea516?source=rss-2dd04ceac8e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/02db860ea516</guid>
            <category><![CDATA[dell-monitor]]></category>
            <category><![CDATA[macbook-pro]]></category>
            <dc:creator><![CDATA[Cloud Architect]]></dc:creator>
            <pubDate>Sat, 14 Mar 2026 21:17:39 GMT</pubDate>
            <atom:updated>2026-03-14T21:17:39.494Z</atom:updated>
            <content:encoded><![CDATA[<h3>Setup of the Dell UltraSharp U4025QW with Apple MacBook Pro M2 Max</h3><p>I’ve been using a 4k dual monitor setup for a while now, and was waiting to see if the <a href="https://www.apple.com/shop/buy-mac/studio-display">new Apple Display</a> would be a worthy upgrade — it looks good however for the price I decided for the <a href="https://www.dell.com/en-us/shop/dell-ultrasharp-40-curved-thunderbolt-hub-monitor-u4025qw/apd/210-bmdp/monitors-monitor-accessories">Dell U4025QW 40&#39;’ wide</a> instead.</p><figure><img alt="Dell U4025QW monitor" src="https://cdn-images-1.medium.com/max/1024/1*apTXXGXVnSVhVTxTS7jY8g.avif" /></figure><p>As always, the main disadvantage about not buying Apple is that things may not work right away. Setting the Dell up with my Apple MacBook Pro M2 Max is not obvious for the average consumer and I had to rely on Reddit and LLM tools to get it working.</p><p>So right off the bat, <strong>it did not work</strong> with the supplied Thunderbolt 4 cable, with the monitor saying it could not detect signal. Some research suggests that there are large specificion differences between the manufacturers. I did update the monitor with the latest firmware as well as set the “Daisy Chain Settings” to “Optimized”, but that didn’t help.</p><p>So the answer was to buy a <a href="https://www.apple.com/shop/product/mdw94am/a/thunderbolt-5-usb%E2%80%91c-pro-cable-1-m">new Apple Thunderbolt 5 Pro</a> cable and it worked right away. My MacBook is Thunderbolt 3 and the Dell Monitor was Thunderbolt 4 so it was a small risk to try, but these cables are expensive and it was cheaper (if shorter) than the other official Apple Thunderbolt 4 Pro cables.</p><p>The result is a very nice 5k display at 5120x2160 at 120Hz, although I use lower HiDPi settings. My last dual monitor setup has multiple power cables between the monitors and hub and now my desk has only one power cable to the monitor and one Thunderbolt cable to the MacBook.</p><p>Note that this applies to the Apple M2 Max and probably Pro chips as far as I can tell. Even later Apple MacBook M3 and M4 base models do not support above 60Hz.</p><p>Not the most exciting post, but hopefully this helps someone in a similar situation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02db860ea516" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Searching Salesforce Picklist Values in a Flow]]></title>
            <link>https://andrewwhitten.medium.com/searching-salesforce-picklist-values-in-a-flow-93262b7e7c4d?source=rss-2dd04ceac8e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/93262b7e7c4d</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[salesforce-lightning]]></category>
            <dc:creator><![CDATA[Cloud Architect]]></dc:creator>
            <pubDate>Wed, 10 Jul 2024 20:36:26 GMT</pubDate>
            <atom:updated>2024-07-10T20:36:26.755Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Summary</strong>: Allow users to search through long value sets in Salesforce and select a value. GitHub repository here: <a href="https://github.com/andrewwhitten/Salesforce-Searchable-Picklist/">andrewwhitten/Salesforce-Searchable-Picklist: Salesforce Searchable Picklist (github.com)</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RhZSGuv-u7fDUvPPrCj4sA.png" /></figure><p>This shouldn’t really be an article. Salesforce supports value sets up to 1,000 items long, and users have been asking for this in <a href="https://ideas.salesforce.com/s/idea/a0B8W00000GdhEHUAZ/type-ahead-search-within-pick-list">an idea sitting dormant since 2010</a>.</p><p>In this example I want to record the languages spoken by each Contact with their level of proficiency. The picklist can fast jump to the beginning letter, but what if the list describes the language differently?</p><p>I want to add the Gaelic language and press ‘g’. Where is Gaelic? Well, a bit further down under ‘Scottish Gaelic’:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*idzajNf4xNvPy1h5xsRobg.png" /></figure><p>This is not ideal for productivity and data quality; users will take longer and/or enter wrong values in order to complete their tasks.</p><p>We can’t change this behavior in the standard Page Layouts, however we can create an alternative way of entering the data through a custom control and a Flow.</p><p>I have setup a related list of language to add to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xxIHWbliNAeZrssnL6Ks1Q.png" /></figure><p>So, let’s build the Flow first:</p><p><strong>Step 1:</strong> Setup the Record Id — this is important in order that the Flow knows which Contact to associate with:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0mJSJkZYpzqxmTL546VgQA.png" /></figure><p><strong>Step 2:</strong> Create a simple screen flow that takes the input and then creates the record:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H2VE5URU1XWLBzRTixoEaA.png" /></figure><p>The screen should be simple as possible. Here we are starting with two standard picklist controls:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-fyorIEwXjudzigUjkYhg.png" /></figure><p><strong>Step 3:</strong> Create the record:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y0PUoMwGqGrfDwN-4Anm-A.png" /></figure><p><strong>Step 4:</strong> Add this new Flow to your page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q0UjLIu5rIo9SzzqO_xVPg.png" /></figure><p>And now we can add new records with a Flow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IsfJv7VrZ1WFQIhhPVK71A.gif" /></figure><p>So now we want to enhance the picklist dropdown to be searchable.</p><p>Get the code here:</p><p>You can alter the code to your picklist — in this example I have a Picklist field called Language__c in the Object Language__c :</p><pre>import LANGUAGE_FIELD from &quot;@salesforce/schema/Language__c.Language__c&quot;;</pre><p>Make sure you have the right Metadata for the LWC control to work in the Flow:</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;LightningComponentBundle xmlns=&quot;http://soap.sforce.com/2006/04/metadata&quot;&gt;<br>    &lt;apiVersion&gt;61.0&lt;/apiVersion&gt;<br>    &lt;isExposed&gt;true&lt;/isExposed&gt;<br>    &lt;targets&gt;<br>        &lt;target&gt;lightning__FlowScreen&lt;/target&gt;<br>    &lt;/targets&gt;<br>    &lt;targetConfigs&gt;<br>    &lt;targetConfig targets=&quot;lightning__FlowScreen&quot;&gt;<br>        &lt;property  name=&quot;labelText&quot; type=&quot;String&quot; label=&quot;Label text for the picklist&quot; description=&quot;Label of picklist&quot; role=&quot;inputOnly&quot; /&gt;<br>        &lt;property  name=&quot;picklistValue&quot; type=&quot;String&quot; label=&quot;Picklist value&quot; description=&quot;xyz&quot; role=&quot;outputOnly&quot; /&gt;<br>    &lt;/targetConfig&gt;&lt;/targetConfigs&gt;<br>&lt;/LightningComponentBundle&gt;</pre><p>Test out locally to ensure the search ComboBox works (don’t worry about the sizing)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9EtpvRFEmBCrG0QuaO1MHQ.gif" /></figure><p>Now we want to replace the language picklist in the Flow with our new custom control:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6_TkXYW5kA9m8YWLQOmOgQ.png" /></figure><p>And try it out!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UG0jvqhvuqnVvqmAcCQ3-g.gif" /></figure><p>But wait, we can also use this same Flow in a Quick Action!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jqio-Xpyh7GBjANt5eBncA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2pP5TY5hbGgiNb7xmCN9Vw.gif" /></figure><h3><strong>Notes:</strong></h3><ul><li><strong>Attribution</strong>: The LWC code was adapted from this <a href="https://salesforce.stackexchange.com/questions/395758/searchable-lightning-combobox-lwc">StackOverflow post</a> by <a href="https://github.com/akutishevsky">Anton Kutishevsky</a> on <a href="https://github.com/akutishevsky/lwc-searchable-combobox">Github</a>. I made some changes to use a Global Value Set and added Flow metadata</li><li><strong>Editing records: </strong>the searchable ComboBox won’t appear when you edit records later. You could create a similar custom screen for this though.</li><li><strong>Flow building:</strong> I didn’t go through every single step to building the Flow. It was simple but this assumes you know how to put it together — you can deploy the full solution to check everything.</li><li><strong>Specifying Picklists dynamically:</strong> Ideally the LWC control will be generic, and you just pass if the Picklist reference at runtime — you will probably need to write an Apex method for this such as here: <a href="https://sfdcian.com/various-methods-for-associating-picklist-values-in-lightning-web-components-lwc/">Various Methods For Associating Picklist Values in Lightning Web Components (LWC) — SFDCian — Best Salesforce Consultant &amp; Architect</a></li><li><strong>Non-Flow use:</strong> Also good! Just change the metadata targets of the LWC control for your scenario</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93262b7e7c4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce Summer ’24 Release Notes highlights]]></title>
            <link>https://andrewwhitten.medium.com/salesforce-summer-24-release-notes-highlights-1e24318bad0c?source=rss-2dd04ceac8e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e24318bad0c</guid>
            <category><![CDATA[salesforce-lwc]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-admin]]></category>
            <dc:creator><![CDATA[Cloud Architect]]></dc:creator>
            <pubDate>Tue, 23 Apr 2024 03:24:51 GMT</pubDate>
            <atom:updated>2024-04-23T03:24:51.162Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*kFRMYdyflzYtvqMBYHyXIw.png" /></figure><p>It is that time of the release cycle again! Summer ’24 release notes are now available:</p><p><a href="https://help.salesforce.com/s/articleView?id=release-notes.salesforce_release_notes.htm&amp;release=250&amp;type=5">Salesforce Summer ’24 Release Notes</a></p><p>As usual there is too much to talk about, but here are my eight highlights so far:</p><h3><strong>1. Prepare for Restrictions on Salesforce Cookie Use</strong></h3><p>Google Chrome (and other browsers) will soon prevent third parties from accessing Salesforce issued cookies. Best test this out in your org now for any breaks:</p><p><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_general_salesforce_cookie_use_restrictions.htm&amp;release=250&amp;type=5">Prepare for Restrictions on Salesforce Cookie Use</a></p><h3>2. See Improved Contrast in Focus States</h3><p>Salesforce screens have improved contrast as per WCAG guidelines for accessibility. Great to see continued commitment to important improvements here.</p><p><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_general_focus_states.htm&amp;release=250&amp;type=5">See Improved Contrast in Focus States (salesforce.com)</a></p><h3>3. Ensure Security in Search with Search Manager</h3><p>You can now choose to protect specific fields in custom objects, preventing them ending up in the search index results. This helps prevent users reverse looking up sensitive data points through search— i.e. show me all contacts with blood type AB.</p><p><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_search_manager_security.htm&amp;release=250&amp;type=5">Ensure Security in Search with Search Manager (salesforce.com)</a></p><h3><strong>4. Navigate to a URL-Addressable Lightning Web Component</strong></h3><p>This is long awaited! Many orgs had to maintain their Aura components and embed LWC just because you could navigate to Aura and not LWC.</p><p><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_UrlAddressable.htm&amp;release=250&amp;type=5">Navigate to a URL-Addressable Lightning Web Component (salesforce.com)</a></p><h3>5. Update Records Using External IDs in REST API</h3><p>You no longer need to have a copy of the Salesforce ID handy. Make API updates to records with their External ID’s.</p><p><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_api_new_updateonly_param.htm&amp;release=250&amp;type=5">Update Records Using External IDs in REST API (salesforce.com)</a></p><h3>6. Let Einstein Build a Draft Flow for You</h3><p>I’m not sure how useful this will prove to be; however, it feels significant. The Flow wizard will now use AI to help build your new Flow:</p><p><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_automate_flow_builder_get_help_building_flows_with_einstein_for_flow.htm&amp;release=250&amp;type=5">Let Einstein Build a Draft Flow for You (salesforce.com)</a></p><h3>7. Check for Duplicates Before Creating Records in a Flow</h3><p>I’m more certain about this one — it seems genuinely useful to check for duplicates as a rule-based step:</p><p><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_automate_flow_builder_check_for_duplicate_records_with_the_updated_create_records_element.htm&amp;release=250&amp;type=5">Check for Duplicates Before Creating Records in a Flow (salesforce.com)</a></p><h3><strong>8. Access and Download Event Log File Data with the Event Log File Browser</strong></h3><p>Yes, another reason not to use Workbench anymore! Download log files easily.</p><p><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_security_em_elf_browser.htm&amp;release=250&amp;type=5">Access and Download Event Log File Data with the Event Log File Browser (Generally Available) (salesforce.com)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e24318bad0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Salesforce UI for Accessibility — Part 1 — Introduction]]></title>
            <link>https://andrewwhitten.medium.com/building-a-salesforce-ui-for-accessibility-part-1-introduction-849e2969ca50?source=rss-2dd04ceac8e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/849e2969ca50</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[wcag]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[accessibility]]></category>
            <category><![CDATA[screen-reader]]></category>
            <dc:creator><![CDATA[Cloud Architect]]></dc:creator>
            <pubDate>Mon, 22 Apr 2024 01:24:51 GMT</pubDate>
            <atom:updated>2024-04-22T01:24:51.885Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Salesforce UI for Accessibility — Part 1 — Introduction</h3><p><strong><em>Disclaimer</em></strong><em>: I’m not a Subject Matter Expert on assistive technologies, and these articles are about my learning journey. I’ve been able to build fairly complex Salesforce LWC components for a while now and wanted to understand how these have fallen short of being truly accessible and determine approaches to address them.</em></p><p>Salesforce does an <a href="https://salesforce.vidyard.com/watch/WsmmpvSCoY4XyPR4cNKNRB">admirable job</a> in making its user interface particularly accessible. They have built their user interfaces and components with accessibility built in along <a href="https://www.w3.org/TR/WCAG/">WCAG guidelines</a> and <a href="https://developer.salesforce.com/docs/platform/lwc/guide/create-components-accessibility.html">provide clear guidance</a> for anyone building on top of the platform.</p><ol><li>Accessibility checking tools can <em>help</em> validate your user interface for accessibility, <strong><em>but</em></strong></li><li>A truly accessible user interface requires a lot more thought and design.</li></ol><p>My first discovery is that if you restrict yourself to building custom components with the Salesforce LWC toolkit and minimum attributes, then your resulting custom components will actually be <strong><em>mostly</em></strong> WCAT compliant. If you choose to ‘go off the beaten track’ and implement your own components with HTML, then you will definitely need to put in a good deal of effort to get that compliance.</p><p>Remember that ‘compliance’ is a starting benchmark, but that in itself is not enough to make a useful accessible component. In fact your component can pass all automated tests and be completely unusable to screen readers.</p><p>My first example is a simple LWC calculator control that just does multiplication. It runs only in the browser, and I didn’t build it with wider User Interface or UX concerns — just plain and simple:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*CKIpaL138Uk1GWAdZ-kIDw.png" /><figcaption>Simple calculator LWC control</figcaption></figure><p>I used the <a href="https://microsoftedge.microsoft.com/addons/detail/accessibility-insights-fo/ghbhpcookfemncgoinjblecnilppimih">Microsoft Edge Accessibility Insights</a> tool to look for issues, and quickly discovered that even bare minimum individual LWC controls will pass automated WCAT validation with little effort. Nevertheless, my whole component had two clear problems — 1) a decorative image with no purpose, and with no indication that it can be ignored, and 2) an image button that doesn’t indicate its purpose textually:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uqallvCFbuZfdgkwM2WfvA.png" /></figure><p>So, what is the practical effect of these issues? Well, you can run a screen reader over the controls and see what happens when you select the ‘=’ button. Because it is an image, the screen reader doesn’t know how to describe it and speaks out the text below instead. This tells me that I have selected a button, but with no indication at all about what it does. As far as I know it could clear the input values:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OB1mjd2xqmhuj-mBrwhbIg.png" /><figcaption>Screen reader trying and failing to describe an image button on the user interface.</figcaption></figure><p>These can be easily fixed with Alternative text labels and titles, and WCAT validation now fully passes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T1qDOwJib_ony9Iv6XiyfQ.png" /><figcaption>Better description for the image button.</figcaption></figure><p>However, we can take it further by adding descriptions specific for users of assistive readers with the <strong>‘aria-label’</strong> attribute:</p><pre>&lt;lightning-input label=&quot;Second input:&quot; aria-label=&quot;Second integer value for calculation&quot; type=&quot;number&quot; name=&quot;inputSecond&quot; value={valueSecond} onchange={handleSecondInputChange}&gt;&lt;/lightning-input&gt;</pre><pre>&lt;lightning-button-icon title=&quot;Multiply Values&quot; aria-label=&quot;Multiply both input values&quot; aria-live=&quot;assertive&quot; icon-name=&quot;standard:assignment&quot; class=&quot;slds-var-m-left_xx-small&quot; onclick={handleCalculateClick}&gt;&lt;label&gt;Multiply&lt;/label&gt;&lt;/lightning-button-icon&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mMl8pFBF4GGKqM5LWYagXw.png" /><figcaption>Even more detailed description targeted at screen readers.</figcaption></figure><p>So, the user can now multiply the two input values, but then what? The screen displays the result but there is no other indication that anything changed!</p><p>We can add an <strong>‘aria-live’</strong> attribute to the result in order to automatically announce it when changed:</p><pre>&lt;div role=&quot;alert&quot; aria-live=&quot;polite&quot;&gt;<br>     Result is &lt;b&gt;{calculationResultLabel}&lt;/b&gt;<br>&lt;/div&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nx81C5liRAjQOqH3Wk62Xw.png" /><figcaption>The screen reader reacts to the result being displayed.</figcaption></figure><p>Is this a good accessible component? Definitely not — a new user will still face challenges in understanding the user interface. However, you can see already how additional attention to accessibility markup can make the difference to a component that is almost unusable to a screen reader, to one that can provide some useful context, information, and feedback.</p><p><strong>Notes:</strong></p><ol><li>Source code for both ‘bad’ and ‘better’ components are here: <a href="https://github.com/andrewwhitten/lwc-accessibility-learning">andrewwhitten/lwc-accessibility-learning: Salesforce LWC component samples with accessibility designs (github.com)</a></li><li>You can run the components in a Salesforce instance or even easier on a local LWC server: <a href="https://developer.salesforce.com/tools/vscode/en/localdev/set-up-lwc-local-dev">Set Up LWC Local Development | Salesforce for VSCode</a></li><li>I used the built in screen reader on MacOS Somona.</li><li>I used the Microsoft Edge browser. Accessibility tools / plugins are available on Chrome and Safari as well.</li><li>I’m not an SME in this space at all. Please feel free to provide feedback to this article and I’ll update it.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=849e2969ca50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quick Overview of the Salesforce Marketing Cloud Audience Builder]]></title>
            <link>https://andrewwhitten.medium.com/quick-overview-of-the-salesforce-marketing-cloud-audience-builder-5ff9d6539e70?source=rss-2dd04ceac8e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ff9d6539e70</guid>
            <category><![CDATA[saleforce-marketing-cloud]]></category>
            <category><![CDATA[exacttarget]]></category>
            <category><![CDATA[digital-marketing]]></category>
            <dc:creator><![CDATA[Cloud Architect]]></dc:creator>
            <pubDate>Wed, 03 Apr 2024 20:26:11 GMT</pubDate>
            <atom:updated>2024-04-03T20:26:11.641Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>This article was published back in 2015 on another site and has since been deleted. I’ve had a request to put it back up and have also updated some of the links for 2024.</em></strong></p><p><strong><em>All screenshots and information are also dated by 9 years at this point — if I gain access to SMC again then I will try and update again.</em></strong></p><p>The <a href="https://help.salesforce.com/s/articleView?id=sf.mc_ab_audience_builder.htm&amp;type=5">Audience Builder</a> in <a href="https://www.salesforce.com/au/products/marketing/">Salesforce Marketing Cloud</a> (formerly ExactTarget) is a way to create specific groups of people to send emails to, as well as further split that group up into smaller more targeted groups for different email content.</p><p>The first question would be where to find it? It does have to be enabled by SMC, and if it has then you should see it under Data &amp; Analytics:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PFSejIhGbAI1g0Wfl-AW8A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*Cd-uixz9cbScJ0DaL3GsoA.jpeg" /></figure><p>Before diving in, it is probably helpful to get familiar with some of the terms that are used in Audience Builder, such as <strong>Universe</strong>, <strong>Population</strong> and <strong>Contact</strong>. I made a quick cheat sheet to help remember, although if your attributes and dimensions are already set up then you just have to use them rather than know how to define them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*77x7vPLSVLTyzZITeFEUEg.jpeg" /></figure><p>Once you have that, then you must understand how <strong>Segments</strong> work on your resultant Audience. You should note how <strong>Priority</strong> between segments work, as well as <strong>Waterfall suppression</strong> of which Audience members enter which segment. This will help avoid unexpected questions about why certain members were not included in an intended email mailing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*PvST66WkpncJ08cTuIhYSQ.jpeg" /></figure><p>If you’re now comfortable with that, it is worth to just look at the Audience Builder screen to get an idea how it works. The Overview screen just shows a long list of all currently defined Audiences:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PFSejIhGbAI1g0Wfl-AW8A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jgCdLBthmOfIBT6WbpLHyw.jpeg" /></figure><p>If you go ahead and click any of these, then the Summary tab has everything that you would expect, which is a high-level breakdown of your Audience, including how much of the <strong>Population</strong> your Audience is using and what is its current Segmentation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PFSejIhGbAI1g0Wfl-AW8A.jpeg" /></figure><p>The <strong>Filter</strong> tab is also straightforward. It defines the rule or rules that make up your Audience before segmenting. In this case all males between certain ages:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KZEleT74QyQhEpZYnoX1qQ.jpeg" /></figure><p>The <strong>Segment</strong> screen allows you to further split up your Audience. You don’t need to actually define any Segments; however, you can edit or add new Segments here if you wish. You can check the impact (in terms of Audience numbers) of any change here. Again, <strong>Waterfall Suppression</strong> comes in effect here, with priority to the lowest numbered Segments in the list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jgCdLBthmOfIBT6WbpLHyw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rmKxCfaKsQzFPgmART631g.jpeg" /></figure><p>Finally, when you are ready, you can Preview or Publish your Audience on the <strong>Publish</strong> tab:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*hbsVQHBFsE_BrQlyzsNF4A.jpeg" /></figure><p>Once your Audience is published, then you are ready to start defining emails to send to them, as well as particular variations on each segment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ff9d6539e70" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce — quickly delete all custom object records]]></title>
            <link>https://andrewwhitten.medium.com/salesforce-quickly-delete-all-custom-object-records-10cbca7968e7?source=rss-2dd04ceac8e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/10cbca7968e7</guid>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[Cloud Architect]]></dc:creator>
            <pubDate>Wed, 03 Jan 2024 07:25:24 GMT</pubDate>
            <atom:updated>2024-01-09T00:03:41.628Z</atom:updated>
            <content:encoded><![CDATA[<h3>Salesforce — quickly delete all custom object records</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GePGwG-s5l1emJlO8PMdSA.png" /></figure><p>I recently had a scenario where I was developing a custom object, filling it with millions of records and then deleting them again. The usual advice is to export all the id’s to a csv file with Salesforce DataLoader, and then use DataLoader to delete those same records with the csv as the input.</p><p>This works but take hours to delete millions of records.</p><p>Salesforce actually has a truncate function — in database terms this just means empty a table of all records. This currently appears only available in Classic Mode:</p><ol><li>Switch to Classic Mode</li><li>Go to Setup</li><li>Navigate to Build-&gt;Customize-&gt;User Interface</li><li>On this screen, find the ‘Enable Custom Object Truncate’ checkbox. Enable it. Save it.</li><li>Go to the details page of your custom object. A ‘truncate’ button will appear. Click it.</li></ol><p><strong>Note:</strong> This functionality behaves like a deletion but does not actually reduce your storage use. It gets renamed with an <em>“_trunc”</em> appended and will take 15 days to actually delete and be removed from your storage limit. I don’t think there is any way to accelerate this, even with the recycle bin.</p><p><strong>Disclaimer</strong>: This is an awesome feature for developing (although a true immediate truncate would have been much better). I’d suggest <strong><em>never touching this in Production</em></strong>. It is very unlikely that you could get your data back if a mistake was made.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10cbca7968e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce Winter ’24 Highlights]]></title>
            <link>https://andrewwhitten.medium.com/salesforce-winter-24-highlights-90fe3ff93890?source=rss-2dd04ceac8e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/90fe3ff93890</guid>
            <category><![CDATA[salesforce-lightning]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[Cloud Architect]]></dc:creator>
            <pubDate>Wed, 16 Aug 2023 01:26:39 GMT</pubDate>
            <atom:updated>2023-08-16T01:26:39.382Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/248/1*pKGxp2nyvM4cNpjZ_l9uCg.png" /></figure><p><a href="https://help.salesforce.com/s/articleView?id=release-notes.salesforce_release_notes.htm&amp;release=246&amp;type=5">Salesforce Winter ’24</a> has no shortage of exciting features this release, with a welcome emphasis on Lightning, LWC components and Salesforce Mobile:</p><h3>Lightning</h3><ol><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_dynamic_forms_standard_objects.htm&amp;release=246&amp;type=5">Dynamic Forms extended to most objects</a> — Although not quite everything, you can now use Dynamic Forms on most standard objects</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_customization_general_related_list_quick_actions_ga.htm&amp;release=246&amp;type=5">Mass quick actions on related lists</a> — This will be a great time saver for users, and negate the need to build custom components for these requirements.</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_lc_native_shadow_dom.htm&amp;release=246&amp;type=5">DOM Structure Changes</a> — This may well have an impact on your test automation tools</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_experiences_search_layout_configure.htm&amp;release=246&amp;type=5">Display more fields in Knowledge Search results</a></li></ol><h3>Lightning Web Components</h3><ol><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_dynamic.htm&amp;release=246&amp;type=5">Dynamically load LWC components</a> — If you want to optimize your pages further, then you can now load those control only when needed — i.e. a complex edit component that is rarely used.</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_versioning.htm&amp;release=246&amp;type=5">Set LWC component to an API version</a> — You can now set LWC components to a specific API version, just like you can today with Apex classes. This will add a bit more stability when preparing for major releases.</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_workspaceAPI.htm&amp;release=246&amp;type=5">Control Workspace Tabs with LWC</a> — Manage workspace tabs from your LWC component. This will reduce the need to call up to parent components for tab navigation functionality.</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_lc_component_instrumentation.htm&amp;release=246&amp;type=5">Event monitoring of LWC events</a> — A new LWC feature that isn’t available in Aura. Events can now be generated from inside your LWC components and be picked up by event monitoring.</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_components.htm&amp;release=246&amp;type=5">New LWC Record Picker component</a> — Display a list of records retrieved with GraphQL</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_modules.htm&amp;release=246&amp;type=5">LWC module for GraphQL queries</a> — Leverage GraphQL for cleaner code with no Apex callbacks</li></ol><h3>Mobile</h3><ol><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_dynamic_forms_on_mobile_ga.htm&amp;release=246&amp;type=5">Dynamic Forms for Mobile users</a> — Salesforce Mobile can now also take advantage of dynamic Forms</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_documentscanner.htm&amp;release=246&amp;type=5">Scan documents with LWC and Salesforce Mobile</a> — Build functionality in Salesforce Mobile to allow document text scanning</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_nfcservice.htm&amp;release=246&amp;type=5">Scan NFC tags with Salesforce Mobile</a> — Build functionality in Salesforce Mobile to allow NFC tag scanning. Great for Field Force Enablement scenarios.</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_biometricsservice.htm&amp;release=246&amp;type=5">Call your mobile device’s biometric functions with LWC</a> — If you want to secure things in your app even more, you can request a biometric scan before allowing a user action</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_mobile_offline_images.htm&amp;release=246&amp;type=5">Salesforce Mobile: Attach images offline</a> — Syncs the image to the record when connectivity returns</li></ol><h3>Apex</h3><ol><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_User_Mode_PermSets.htm&amp;release=246&amp;type=5">Apex can specify custom access with Permission Sets for user made</a> — Better security for database operations in user mode</li><li><a href="https://help.salesforce.com/s/articleView?language=en_US&amp;id=release-notes.rn_apex_queueable_enhancements_ga.htm&amp;type=5&amp;release=246">Set a maximum stack depth of Queueable jobs</a> — Set limits to prevent reaching the daily maximum number of asynchronous Apex method executions</li><li><a href="https://help.salesforce.com/s/articleView?language=en_US&amp;id=release-notes.rn_apex_queueable_dupe_detection.htm&amp;type=5&amp;release=246">Ensure that Duplicate Queueable Jobs Aren’t Enqueued</a> — Reduce the risk of race conditions with a signature on a queueable job</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_DataWeaveInApex_GA.htm&amp;release=246&amp;type=5">DataWeave in Apex is GA!</a> — You can use the effective MuleSoft data transformation language — DataWeave — in Apex now</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_iterator_foreach.htm&amp;release=246&amp;type=5">Loop through Lists and Sets more easily with Iterable</a> — Simple yet clean way of looping</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_asyncApexConsumption.htm&amp;release=246&amp;type=5">Monitor Async Apex Job limit</a> –</li></ol><h3>Other</h3><ol><li>Security: <a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_permissions_perm_set_crt.htm&amp;release=246&amp;type=5">Report on Permission Set Assignments</a> — Spring ’26 is introducing a big change in the way Profiles and Permission Sets will work. In preparation for this you can now create reports on how Permission Sets and Permission Set Groups are assigned</li><li>Flows: <a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_ext_services_add_http_callout_methods.htm&amp;release=246&amp;type=5">Declarative control of POST, PUT, PATCH and DELETE in HTTP Callout</a> — More flexibility and control over the HTTP Callout function.</li><li><a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_dev_environments_sandbox_selective_access.htm&amp;release=246&amp;type=5">Specify Sandbox users in a public group</a> — This should speed up the provisioning of new and refreshed sandboxes</li><li>Security: <a href="https://help.salesforce.com/s/articleView?id=release-notes.rn_security_other_clickjacking_protect_more.htm&amp;release=246&amp;type=5">Additional clickjacking protection</a> — If enabled, this provides even more clickjacking support at the expense of browsers that don’t support the Content-Security-Policy: frame-ancestors directiv setting.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90fe3ff93890" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Publish Salesforce CDC changes to Azure]]></title>
            <link>https://andrewwhitten.medium.com/publish-salesforce-cdc-changes-to-azure-f4bcc727ff06?source=rss-2dd04ceac8e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4bcc727ff06</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[azure-service-bus]]></category>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[enterprise-architecture]]></category>
            <dc:creator><![CDATA[Cloud Architect]]></dc:creator>
            <pubDate>Wed, 03 May 2023 20:58:55 GMT</pubDate>
            <atom:updated>2023-05-03T21:05:14.473Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Use Case</strong>: You have Salesforce with MuleSoft and want to publish Contact changes to a Partner business who is established on the Microsoft Azure cloud, and are currently upgrading their CRM systems.</p><p>The <a href="https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-messaging-overview">Microsoft Azure Service Bus</a> provides a reliable, scalable and cost effective mechanism for handling high volumes of messages between systems.</p><p>By leveraging Microsoft Azure Service Bus, you can receive changes raised by Salesforce CDC (Change Data Capture) and store them on the partner’s Queue for use when they are ready. If they are transitioning systems then this has the additional benefit that your integration is not impacted:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*z-6LEcsKPY4p90Xs8Py85Q.png" /></figure><p>The benefits from this design are:</p><ol><li>Very simple to build and configure end to end. It can be a no-code solution.</li><li>Very cost effective to use Azure ServiceBus.</li><li>Reliable. Messages successfully delivered to the Azure Service Bus can be managed by the Partner as they require</li><li>Avoids Point-to-Point : Your integration with the Partner is not hard set between Salesforce and Dynamics. The Partner can consume the messages in any system they want, and even multiple systems at the same time should they choose</li></ol><p>Disadvantages include:</p><ol><li>You may hit limits at high data change volumes from Salesforce: <a href="https://developer.salesforce.com/docs/atlas.en-us.change_data_capture.meta/change_data_capture/cdc_allocations.htm">Change Data Capture Allocations | Change Data Capture Developer Guide | Salesforce Developers</a></li><li>Salesforce CDC events can only be picked up for 24 hours — if you have delivery issues then you will need to store changes in MuleSoft somehow (for example, implementing an outbound queue) or use another method to update the Service Bus after that timeframe</li></ol><p>Security note: This POC doesn’t include much security at this point, using Salesforce basic authentication and a simple key for Azure. You would want to look at OAuth and secure network channels. This might be for a future article.</p><p>The video below shows editing a telephone number in a contact record in Salesforce (top left), having that picked up my MuleSoft Anypoint (lower screen) and then picked up on the Microsoft Azure Service Bus (top right):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oR74QfLIEzkS24jxROiMaQ.gif" /></figure><p>+++++++++++++++++++++</p><p>How to build:</p><p><strong>Step 1: Configure Salesforce</strong></p><p>In a Developer Org, go to ‘Change Data Capture’ and choose the ‘Contact’ object (although you can choose whatever you want).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nofZKuHLmX73NF0keYoU6w.png" /></figure><p><strong>Step 2: Configure Microsoft Azure</strong></p><p>Creating a ‘Basic’ level Service Bus is sufficient for the POC (no issue going for ‘Standard’ if you want to try out ‘Topics’ though):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E7DPsSyR_zMGSO-KK1rO9Q.png" /></figure><p><a href="https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-queues-topics-subscriptions">Create one queue (or a Topic)</a> and make note of its name — this will be the destination.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ni--FzRsxbOx3eMF80lIzA.png" /></figure><p>Go to the Shared access policies and copy the ‘Primary Key’:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AtGbnEjjYugqbLKgCxql0w.png" /></figure><p><strong>Step 3: Create MuleSoft Anypoint App</strong></p><p>This is the simple Flow that we are creating. To pickup the CDC events, we need to setup the Replay channel listener element. Basic authentication for Salesforce is sufficient for the POC, and if you have configured CDC correctly then it will list the streaming channels available to you:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tb3EL6On86cnSs0cU1wwXw.png" /></figure><p>Add the <a href="https://docs.mulesoft.com/microsoft-azure-sb-connector/3.2/">Azure Service Bus Messaging Connector</a> from Exchange, and add the ‘Send’ element to the Flow. For ease of setup, use the SAS (shared access signature) credentials from Azure Service Bus earlier. ‘Shared access key’ below is the ‘Primary Key’ defined in Azure earlier:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XE-9qyp6aRiPiys2zT3SBA.png" /></figure><p>If the configuration is correct, then you will be able to select all available queues (and Topics) defined on the Service Bus under ‘Destination name’. Then add ‘payload’ to the message body:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R9Lj0heBtzLmJT132bE95A.png" /></figure><p>Here we are simply passing the payload from the Salesforce CDC. Ideally we would use DataWeave to break it down the relevant parts into a new simple JSON payload.</p><p><strong>Step 4: Add a ‘’Logger’ element</strong></p><p>This is just to output the payload to the console. Optional but very simple to add.</p><p><strong>Step 5: Run it</strong></p><p>Run you App locally in Anypoint Studio debug mode with the console screen open (in order to see the record changes coming through. Go to any Contact record is Salesforce and change a field value (such as telephone). This should then pass all the way through and sit on the Azure Service Bus message queue.</p><p><strong>Notes:</strong></p><ol><li>The intention of this POC is to show the message passing through. Security must be considered, ideally by securing the ServiceBus behind an Azure Private End Point.</li><li>I didn’t show the Azure Logic Apps. That would be interesting to try out, but not required for demonstrating the Service Bus</li><li>It should be possible to skip MuleSoft and build a CometD client on Azure somehow, but it looks like that would require some custom build effort</li><li>MuleSoft have a Contact broadcast template, which has similarites with my example use case — <a href="https://github.com/mulesoft-assets/template-sfdc2msdyn-contact-broadcast">mulesoft-assets/template-sfdc2msdyn-contact-broadcast: Anypoint Template: Salesforce to MS Dynamics Contact Broadcast (github.com)</a></li><li>You can still do Point-to-Point integration between Salesforce and Dynamics: <a href="https://docs.mulesoft.com/microsoft-dynamics-crm-connector/3.2/">Microsoft Dynamics CRM Connector 3.2 — Mule 4 | MuleSoft Documentation</a> . MuleSoft also provide a bi-directional sync if you wanted — <a href="https://github.com/mulesoft-assets/template-sfdc2msdyn-account-bidirectional-sync">mulesoft-assets/template-sfdc2msdyn-account-bidirectional-sync: Anypoint Template: Salesforce and MS Dynamics Account Bidirectional Sync (github.com)</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4bcc727ff06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OpenID Connect with MuleSoft Anypoint and Okta]]></title>
            <link>https://andrewwhitten.medium.com/openid-connect-with-mulesoft-anypoint-and-okta-a0f4641cc90a?source=rss-2dd04ceac8e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0f4641cc90a</guid>
            <category><![CDATA[oauth]]></category>
            <category><![CDATA[openid-connect]]></category>
            <category><![CDATA[anypoint-platform]]></category>
            <category><![CDATA[okta]]></category>
            <category><![CDATA[mulesoft]]></category>
            <dc:creator><![CDATA[Cloud Architect]]></dc:creator>
            <pubDate>Sun, 16 Apr 2023 21:13:40 GMT</pubDate>
            <atom:updated>2023-04-16T21:18:16.782Z</atom:updated>
            <content:encoded><![CDATA[<p>The previous article <a href="https://medium.com/@andrewwhitten/openid-connect-with-okta-and-azure-functions-150e08adee8d">we connected Okta OAuth and Microsoft Azure Functions</a>. Now that is established we can call from MuleSoft Anypoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*lI7LSBIh6IbjczKtEExkLQ.png" /></figure><p><strong>Step 1: Create the MuleSoft AnyPoint project</strong></p><p>Define a new Mule project, along with a simple workflow using Listener and a Request elements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5CL_JeSEQ1rf3WwuCPa2GQ.png" /></figure><p>Define a simple HTTP Listener to run on your local machine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TFRsbVtjn42ol320oDMeLg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aE9BA8xbRkDcnDgzk4sotg.png" /></figure><p>Define the Request properties with your OAuth enabled endpoint:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9if3Av7j-5307bXBAt1FA.png" /></figure><p>Set up the Request element to Azure. In this example I am explicitly passing the query parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pq5mK2HEzqH7usFAaUcM-Q.png" /></figure><p>Run locally and invoke from Postman. You should get a 401 unauthorised error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AhGpJTti2W6n9bGosU5diA.png" /></figure><p><strong>Step 2: Add OAuth</strong></p><p>Add the OAuth Module to your project. This will just enable OAuth as an option in our existing Request element:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*c-fPBN_NmDKviG8o_teo8w.png" /></figure><p>The request will now have a client credentials authorization type. Enter your Okta token url, client id and client secret:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gk9ZcHEizhoTE1QiPO-YZw.png" /></figure><p>Run the project again, and you should see a successful call this time:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u4tnOtE-hBkMfuRUZnJtUw.png" /></figure><p><strong>Notes</strong></p><ol><li>This is running on MuleSoft AnyPoint Studio 7.14</li><li>You can use this method to connect to OAuth enabled services from MuleSoft. They don’t have to use Okta or Microsoft Azure.</li><li>I didn’t bother deploying the MuleSoft app to CloudHub for this simple scenario. If you want to try, just change the listener to HTTPS.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0f4641cc90a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>