<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: PAMARTHI DHANUSH</title>
    <description>The latest articles on DEV Community by PAMARTHI DHANUSH (@pamarthi_dhanush_41e91011).</description>
    <link>https://dev.to/pamarthi_dhanush_41e91011</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4258332%2F09e8143c-7d27-423c-9bdd-10291b043064.jpg</url>
      <title>DEV Community: PAMARTHI DHANUSH</title>
      <link>https://dev.to/pamarthi_dhanush_41e91011</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pamarthi_dhanush_41e91011"/>
    <language>en</language>
    <item>
      <title>Connection vs. Connection Reference in Power Automate: The Mix-Up That Breaks Flows in Production</title>
      <dc:creator>PAMARTHI DHANUSH</dc:creator>
      <pubDate>Thu, 26 Nov 2026 04:26:13 +0000</pubDate>
      <link>https://dev.to/pamarthi_dhanush_41e91011/connection-vs-connection-reference-in-power-automate-the-mix-up-that-breaks-flows-in-production-4pfn</link>
      <guid>https://dev.to/pamarthi_dhanush_41e91011/connection-vs-connection-reference-in-power-automate-the-mix-up-that-breaks-flows-in-production-4pfn</guid>
      <description>&lt;p&gt;If you've ever fixed a broken flow by poking around in a solution and changing something called a "connection reference," only to have someone ask "wait, isn't that the same as a connection?" — you're not alone. These two terms look alike, sit near each other in the UI, and fail in nearly identical ways. But they are not the same thing, and mixing them up is exactly why "27 failed runs, then one change and it's green again" keeps happening to so many of us.&lt;/p&gt;

&lt;p&gt;Here's the distinction, straight from Microsoft's own solution guidance, plus the actual steps to resolve it when it breaks.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a Connection actually is
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;connection&lt;/strong&gt; is the stored authentication credential for a connector — the OAuth token, API key, or login session that lets Power Automate act as &lt;em&gt;you&lt;/em&gt; against an external service like SharePoint, Office 365, or a SQL database. When you first add a SharePoint action to a flow and sign in, you've created a connection. It belongs to a specific connector and a specific identity.&lt;/p&gt;

&lt;p&gt;Connections are what &lt;strong&gt;non-solution (standalone) cloud flows&lt;/strong&gt; use directly. Every action in the flow points straight at that connection. If the connection breaks — a password change, an expired token, revoked MFA — every action tied to it breaks too, and you have to fix the connection itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a Connection Reference actually is
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;connection reference&lt;/strong&gt; is a &lt;em&gt;solution component&lt;/em&gt; — a placeholder that sits between a flow's actions and the actual connection. Instead of a solution-aware flow binding directly to a connection, it binds to a connection reference, and the connection reference points at a connection.&lt;/p&gt;

&lt;p&gt;Why bother with the extra layer? Portability. When you move a solution from dev to test to production, you don't want to hand-edit every action in every flow to point at the production connection. Instead, during import, you set what each connection reference points to &lt;em&gt;once&lt;/em&gt;, and every action using that reference follows automatically. Change the connection reference, and everything downstream stays connected — no flow redesign required.&lt;/p&gt;

&lt;p&gt;This is also why &lt;strong&gt;solution-aware cloud flows always use connection references&lt;/strong&gt;, never raw connections directly, and why Microsoft's own ALM guidance calls using connection references a best practice for any flow that will ever be moved between environments.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why everyone mixes them up
&lt;/h2&gt;

&lt;p&gt;A few reasons this confusion is so common and not really your fault:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;They share the same connector icons in the UI, so visually a connection and a connection reference look identical at a glance.&lt;/li&gt;
&lt;li&gt;They fail the &lt;strong&gt;same way&lt;/strong&gt;: a red exclamation mark, actions silently not firing, a flow that won't turn on. The symptom gives you no hint which layer is actually broken.&lt;/li&gt;
&lt;li&gt;The fix for both involves clicking into something that says "connection" — so even the repair workflow looks the same from the outside.&lt;/li&gt;
&lt;li&gt;Canvas apps and flows don't even treat them consistently: flows use connection references for &lt;em&gt;every&lt;/em&gt; connector, but canvas apps only use them for non-OAuth connections. Same solution, different rules depending on what you're looking at.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Actually resolving it
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;If the flow is solution-aware&lt;/strong&gt; (this is the "27 failed runs" scenario from my last post):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the solution containing the flow.&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;Connection references&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Find the reference showing as invalid (red exclamation point) — that means the &lt;em&gt;underlying connection&lt;/em&gt; is in a bad state, not the reference itself.&lt;/li&gt;
&lt;li&gt;Open it and point it at a valid, working connection — or create a new one if the old one can't be repaired.&lt;/li&gt;
&lt;li&gt;Confirm the connection's owner actually has access to the service it authenticates against (expired passwords and revoked MFA are the usual culprits).&lt;/li&gt;
&lt;li&gt;Turn the flow off, then on, and run a test.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;If the flow is a standalone (non-solution) flow&lt;/strong&gt;, there's no reference layer to redirect — go straight to the connection itself and reconnect/reauthenticate it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One more failure mode worth knowing&lt;/strong&gt;: if a flow won't turn on and you see &lt;code&gt;ConnectionAuthorizationFailed&lt;/code&gt;, that's not a broken connection at all — it means the person trying to activate the flow doesn't have permission to use one of the connections it relies on. Either the connection owner shares the connection with that person, or the connection owner turns the flow on themselves first. After that, co-owners can toggle it freely.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule of thumb
&lt;/h2&gt;

&lt;p&gt;Never let a solution-aware flow bind straight to a raw connection if you can avoid it. Route everything through a connection reference. It's a five-minute setup step that saves you from rebuilding flow logic every time a credential changes or a solution moves environments — which, if you've been doing this long enough, is always sooner than you'd like.&lt;/p&gt;

</description>
      <category>automation</category>
      <category>microsoft</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>Three Ways to Put a Copilot Studio Agent in a Canvas App (and Why One of Them Is Already Being Retired)</title>
      <dc:creator>PAMARTHI DHANUSH</dc:creator>
      <pubDate>Wed, 25 Nov 2026 07:44:04 +0000</pubDate>
      <link>https://dev.to/pamarthi_dhanush_41e91011/three-ways-to-put-a-copilot-studio-agent-in-a-canvas-app-and-why-one-of-them-is-already-being-1g4d</link>
      <guid>https://dev.to/pamarthi_dhanush_41e91011/three-ways-to-put-a-copilot-studio-agent-in-a-canvas-app-and-why-one-of-them-is-already-being-1g4d</guid>
      <description>&lt;p&gt;"Can I add my Copilot Studio agent to my Canvas app?" comes up in the Power Platform Community constantly, and the honest answer is "yes, in three different ways, and they're not interchangeable." I've seen makers pick the wrong one, hit a wall six weeks into a build, and have to redo the integration. So here's the actual decision tree, pulled straight from the current Microsoft Learn docs rather than from memory (the feature set here has moved fast enough that memory is a liability).&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 1: App Copilot (custom Copilot chat) — being retired
&lt;/h2&gt;

&lt;p&gt;This is the "Copilot" button that shows up in the command bar, plus a floating chat button on mobile. You wire it up in Settings → Updates → Preview, turn on &lt;strong&gt;App Copilot&lt;/strong&gt;, and pick a custom Copilot you already built and published in Copilot Studio in the same environment.&lt;/p&gt;

&lt;p&gt;The appeal was that it needed zero layout changes — the chat just appears as a command-bar button or a floating widget. The catch: &lt;strong&gt;starting February 2, 2026, adding this to new canvas apps is discontinued.&lt;/strong&gt; Existing apps keep working for a while, but Microsoft's own docs say plainly that you should migrate to Option 3 below. If you're starting something new today, skip this one entirely — building on a feature that's already being phased out is a bad trade for a few hours saved.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 2: The Copilot control (an actual control on the canvas)
&lt;/h2&gt;

&lt;p&gt;This is different from Option 1 in a way that trips people up: it's a visible control you drag onto a screen, like a button or a gallery, not a floating chat bubble. You turn on &lt;strong&gt;Copilot component&lt;/strong&gt; and &lt;strong&gt;Edit in Copilot Studio&lt;/strong&gt; in app settings, then &lt;code&gt;Insert → Copilot (preview)&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Two things worth knowing before you commit to this one:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It only supports Dataverse as a data source.&lt;/strong&gt; If your app runs on SharePoint or SQL, this control is a non-starter.&lt;/li&gt;
&lt;li&gt;You can either create a brand-new Copilot from inside the control's properties pane, or jump into Copilot Studio to customize one — but the control itself "doesn't support enabling an existing Copilot from Copilot Studio" if you didn't create it through this flow. That's a real constraint, not a UI quirk: plan your Copilot's origin before you start wiring up the control.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is the option to reach for when you specifically want a Copilot &lt;em&gt;as a piece of UI on a screen&lt;/em&gt; — answering questions about the app's own Dataverse data — rather than a general assistant.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 3: Microsoft Copilot in canvas apps — the current recommended path
&lt;/h2&gt;

&lt;p&gt;This is what Option 1 is being replaced by, and it's architected differently: an admin enables it tenant/environment-wide in the Power Platform admin center (&lt;strong&gt;Copilot → Settings → Power Apps → Chat Agent → Microsoft Copilot&lt;/strong&gt;), and then each maker flips a per-app toggle in &lt;strong&gt;Settings → General → Microsoft Copilot in canvas apps&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The fine print actually matters here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It works against &lt;strong&gt;Dataverse Search&lt;/strong&gt;, so turning it on can increase your environment's Dataverse capacity consumption — not a free toggle.&lt;/li&gt;
&lt;li&gt;It supports &lt;strong&gt;either&lt;/strong&gt; SharePoint or Dataverse as a data source, &lt;strong&gt;never both in the same app&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;In the initial preview, SharePoint support is limited to apps with a &lt;strong&gt;single SharePoint list&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;It's &lt;strong&gt;read-only&lt;/strong&gt; — users can ask questions about data, but can't make changes through it. If you need the Copilot to actually do things (create a record, kick off a flow), you still need to build that as a custom agent action, not rely on this surface.&lt;/li&gt;
&lt;li&gt;It currently doesn't run in the &lt;strong&gt;Power Apps mobile app&lt;/strong&gt; at all.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The actual decision tree
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Building something new today, want the supported long-term path → &lt;strong&gt;Option 3&lt;/strong&gt;, with eyes open about the Dataverse-only-or-SharePoint-single-list constraint.&lt;/li&gt;
&lt;li&gt;Need a specific, visible Q&amp;amp;A widget on one screen, app lives on Dataverse → &lt;strong&gt;Option 2&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Already shipped with Option 1 → start planning the migration now; "existing apps remain functional for a limited time" is Microsoft's own phrasing, not mine, and it's not a long runway.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this is exotic knowledge — it's all in the docs — but the docs are split across several separate pages, each describing one option in isolation, with no page that lays out the trade-off between them. That gap is exactly where the forum question keeps coming from, and it's exactly the kind of gap worth closing with a single post instead of three separate doc links.&lt;/p&gt;

</description>
      <category>powerapps</category>
      <category>copilotstudio</category>
      <category>ai</category>
    </item>
    <item>
      <title>Making Copilot Studio Agents Fail Gracefully: Conversational Error Handling with Power Automate</title>
      <dc:creator>PAMARTHI DHANUSH</dc:creator>
      <pubDate>Sun, 22 Nov 2026 07:30:37 +0000</pubDate>
      <link>https://dev.to/pamarthi_dhanush_41e91011/making-copilot-studio-agents-fail-gracefully-conversational-error-handling-with-power-automate-2c7n</link>
      <guid>https://dev.to/pamarthi_dhanush_41e91011/making-copilot-studio-agents-fail-gracefully-conversational-error-handling-with-power-automate-2c7n</guid>
      <description>&lt;p&gt;In my last post I walked through wiring a Copilot Studio agent to write to Dataverse through a Power Automate flow. I mentioned one thing I'd change: how the agent handles failure. This post is that fix.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foi24450azrqi5j9yspad.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foi24450azrqi5j9yspad.png" alt=" " width="800" height="547"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with generic errors
&lt;/h2&gt;

&lt;p&gt;The first version of the flow was solid for the happy path - user asks, agent collects fields, flow writes to Dataverse, done. The failure path was the opposite of solid: any failure, whatever the cause, turned into the same flat "Something went wrong, please try again" message back to the user.&lt;/p&gt;

&lt;p&gt;That's fine in a form. It's a dead end in a conversation. A form at least shows &lt;em&gt;which&lt;/em&gt; field is red. A chat message that just restates failure gives the user nothing to act on - they either retype the entire request from scratch or give up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this happens by default
&lt;/h2&gt;

&lt;p&gt;It's the easy path, honestly. The simplest version of any Copilot Studio topic that calls a flow just checks "did the flow succeed" and branches into a single canned message on failure. It works in your own testing, because you already know what you typed and you don't test the broken paths as often as the working one.&lt;/p&gt;

&lt;p&gt;The actual failures that show up in practice are specific and recoverable: a required field was empty, a lookup didn't resolve, a value failed a business rule in Dataverse. Every one of those has a different, useful follow-up question - but only if the agent knows which one happened.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: let the flow talk back
&lt;/h2&gt;

&lt;p&gt;The change is on both sides:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In the flow:&lt;/strong&gt; instead of a single success/fail output, return a structured result - a status plus a reason code plus a human-readable message when it fails. A &lt;code&gt;Scope&lt;/code&gt; with a &lt;code&gt;Configure run after&lt;/code&gt; on failure, feeding a consistent output schema (&lt;code&gt;{success: false, reasonCode: "MissingPriority", message: "..."}&lt;/code&gt;), is enough.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In the Copilot Studio topic:&lt;/strong&gt; branch on that reason code, not just on success/failure. Each reason code maps to a short, specific follow-up question back to the user - not a restart of the whole topic, just the one missing piece.&lt;/p&gt;

&lt;p&gt;The result: the same failure that used to be a dead end becomes one clarifying question, and the user finishes the task in the same conversation instead of abandoning it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's still manual
&lt;/h2&gt;

&lt;p&gt;This doesn't cover every failure gracefully yet - a genuine platform outage or a throttled connection still needs a real "try again later," and that's correct; not everything should be reframed as a question. The distinction that matters is between &lt;strong&gt;failures the user caused&lt;/strong&gt; (missing input, invalid value - these deserve a follow-up question) and &lt;strong&gt;failures the system caused&lt;/strong&gt; (outage, throttling, permissions - these deserve an honest "this isn't something you can fix right now").&lt;/p&gt;

&lt;h2&gt;
  
  
  The actual lesson
&lt;/h2&gt;

&lt;p&gt;Error handling in a conversational interface isn't a separate feature bolted onto the "real" logic - it's part of the conversation design itself. A flow that only returns true/false is making the error-handling decision for you, before the agent ever gets a chance to have a reasonable follow-up. Returning the &lt;em&gt;reason&lt;/em&gt;, not just the result, is what turns a dead end back into a conversation.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>automation</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Building a Copilot Studio Agent That Writes to Dataverse via Power Automate</title>
      <dc:creator>PAMARTHI DHANUSH</dc:creator>
      <pubDate>Sun, 22 Nov 2026 06:19:43 +0000</pubDate>
      <link>https://dev.to/pamarthi_dhanush_41e91011/building-a-copilot-studio-agent-that-writes-to-dataverse-via-power-automate-5dbo</link>
      <guid>https://dev.to/pamarthi_dhanush_41e91011/building-a-copilot-studio-agent-that-writes-to-dataverse-via-power-automate-5dbo</guid>
      <description>&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;A canvas app I kept coming back to had the same shape every time: a user opens it, fills in a form, and submits a record to Dataverse. Simple, reliable, and completely manual. Every "update the status" or "log this request" moment needed someone to stop what they were doing, open the app, and type.&lt;/p&gt;

&lt;p&gt;That's exactly the kind of step that's worth questioning once Copilot Studio is sitting right next to Power Platform. Not AI for its own sake - just removing a manual step that doesn't need a human typing into a form.&lt;/p&gt;

&lt;h2&gt;
  
  
  The architecture
&lt;/h2&gt;

&lt;p&gt;The version that worked ended up being deliberately boring:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A Copilot Studio agent with a topic that collects the handful of fields the record needs, in conversation rather than a form.&lt;/li&gt;
&lt;li&gt;The topic calls a Power Automate cloud flow (an action added to the topic) instead of writing to Dataverse directly.&lt;/li&gt;
&lt;li&gt;The flow does the actual Dataverse &lt;code&gt;Add a new row&lt;/code&gt; (or &lt;code&gt;Update a row&lt;/code&gt;), using a proper connection reference - not the agent's own identity.&lt;/li&gt;
&lt;li&gt;The flow returns a result back to the topic, which the agent relays to the user in plain language instead of a generic "done."&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Nothing exotic - the agent is a conversational front door, and the flow stays the system of record for anything that touches Dataverse.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gotcha
&lt;/h2&gt;

&lt;p&gt;The part that didn't work on the first attempt: authentication context.&lt;/p&gt;

&lt;p&gt;It's tempting to assume the agent's own connection can just write to Dataverse directly from a topic. In practice, the moment multiple users interact with the same agent, you want the flow - not the agent - owning the Dataverse connection, through a proper connection reference set up for the environment, not a personal connection tied to one maker's account. Skip that and the flow works perfectly in testing (where it's just you) and then fails intermittently once more than one person is actually using the agent, because the connection was never meant to be shared.&lt;/p&gt;

&lt;p&gt;The fix was mechanical once identified: move the Dataverse action out of the topic and into the flow, and make the flow the single owner of that connection reference. The agent only ever talks to the flow, never to Dataverse.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd change next time
&lt;/h2&gt;

&lt;p&gt;The first version sent a flat "something went wrong" back to the user whenever the flow failed - a bad input, a missing required field, a throttled connection. That's a dead end in a conversation. The agent should get the actual failure reason back from the flow and ask a clarifying follow-up instead of restating the request from scratch. Error handling in a conversational interface needs to behave like part of the conversation, not a toast notification that happens to be text.&lt;/p&gt;

&lt;h2&gt;
  
  
  The actual lesson
&lt;/h2&gt;

&lt;p&gt;The interesting part was never "can Copilot Studio call a flow." It's that an agent in front of Power Platform doesn't remove the need for good flow design - connection references, delegation, error handling - it just moves the point where a shortcut becomes visible. Everything that was already a best practice in Power Automate stays a best practice here; the agent just means more people hit the gaps sooner.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>automation</category>
      <category>microsoft</category>
    </item>
  </channel>
</rss>
