{"id":46987,"date":"2026-11-25T18:29:14","date_gmt":"2026-11-25T12:59:14","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=46987"},"modified":"2026-11-25T18:31:23","modified_gmt":"2026-11-25T13:01:23","slug":"building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/","title":{"rendered":"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse"},"content":{"rendered":"<p>If you\u2019ve built business apps on the Power Platform, you\u2019ve probably hit this wall. Canvas apps and model-driven apps are great for getting something running quickly, but once a client asks for a very custom interface, a specific design system, or a front end your team can build and test like any other web project, you start fighting the tool.<\/p>\n<p>The usual workaround was a separate web app in React or Angular, connected to Dataverse by hand. That works, but it puts security in your hands. You set up app registrations, deal with sign-in and tokens, decide where the API calls run, and figure out how to share the app with the right people. All of that is yours to build, secure and maintain.<\/p>\n<p>There was a second trap as well. Because the front end was custom code, it was tempting to put the permission checks there too. You check the user\u2019s role, hide the <strong>Edit<\/strong> or <strong>Delete<\/strong> button, and call it done.<\/p>\n<p>Power Apps Code Apps take a different route. You build the app in React and TypeScript with the Power Apps SDK and CLI, and the app runs inside the Power Platform. Your team keeps full control of the UI and a normal web development workflow, and you get managed platform capabilities such as signing in with a Microsoft work account, sharing the app with users, and reaching Dataverse and other connectors through the platform instead of a hand-built API layer.<\/p>\n<p>In practice, the app talks to Dataverse as the signed-in user. You aren\u2019t wiring up your own login and token handling just to read a Case record, which takes a lot of security work off your plate.<\/p>\n<p>That doesn\u2019t mean you can stop thinking about permissions. It just changes where they belong. Hiding a button is a design choice, not a security control.<\/p>\n<p>In this article we\u2019ll build a small Case Management Code App that relies on Dataverse for enforcement. We\u2019ll set up least-privilege security roles, connect the app to the Case table, keep the React logic focused on user experience, and handle \u201cAccess denied\u201d responses gracefully instead of letting the app break.<\/p>\n<p><strong>Applying Role-Based Security in Dataverse<\/strong><\/p>\n<p><strong>Consider a Use Case:<\/strong> A customer service team wants a Case Management app built as a Code App. Access to Case records should depend on the user\u2019s role:<\/p>\n<ul>\n<li><strong>Sales Representatives<\/strong> see only the Cases Dataverse allows them to see.<\/li>\n<li><strong>Customer Service Agents<\/strong> can update Cases they have the privilege and access for.<\/li>\n<li><strong>Administrators<\/strong> get broader access based on their security role.<\/li>\n<li><strong>Unauthorized actions<\/strong> fail safely, and the app shows a plain-language message.<\/li>\n<\/ul>\n<table width=\"602\">\n<thead>\n<tr>\n<td width=\"155\"><strong>Operation<\/strong><\/td>\n<td width=\"153\"><strong>Sales Representative<\/strong><\/td>\n<td width=\"147\"><strong>Customer Service Agent<\/strong><\/td>\n<td width=\"147\"><strong>Administrator<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td width=\"155\">View permitted Cases<\/td>\n<td width=\"153\">Yes<\/td>\n<td width=\"147\">Yes<\/td>\n<td width=\"147\">Yes<\/td>\n<\/tr>\n<tr>\n<td width=\"155\">Create Cases<\/td>\n<td width=\"153\">Based on assigned privilege<\/td>\n<td width=\"147\">Based on assigned privilege<\/td>\n<td width=\"147\">Based on assigned privilege<\/td>\n<\/tr>\n<tr>\n<td width=\"155\">Update permitted Cases<\/td>\n<td width=\"153\">No by default in this scenario<\/td>\n<td width=\"147\">Yes when granted<\/td>\n<td width=\"147\">Yes when granted<\/td>\n<\/tr>\n<tr>\n<td width=\"155\">Delete Cases<\/td>\n<td width=\"153\">No<\/td>\n<td width=\"147\">No by default<\/td>\n<td width=\"147\">Yes when granted<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Prerequisites<\/strong><\/p>\n<p><strong>Here\u2019s what you\u2019ll need to build and test the Case Management Code App<\/strong><strong>:<\/strong><\/p>\n<ul>\n<li>A Power Platform environment with Dataverse, with Code Apps enabled<\/li>\n<li>js (LTS version) and Git<\/li>\n<li>The Power Apps CLI and the @microsoft\/power-apps SDK package. The Code Apps tooling has changed a fair bit between releases, so follow Microsoft\u2019s latest quickstart for the install steps.<\/li>\n<li>Access to the Case table (incident), or a similar custom table if you prefer<\/li>\n<li>Permission to create and assign Dataverse security roles<\/li>\n<li>Three test users, one for each role in the scenario<\/li>\n<li>A dev or test environment. Please don\u2019t experiment with security roles in production.<\/li>\n<\/ul>\n<p><strong>Step 1: Understanding Authentication, Authorization, and Data Security<\/strong><\/p>\n<p>These three ideas get mixed up a lot, so let\u2019s separate them.<\/p>\n<p><strong>Authentication<\/strong> is about who the user is. Users sign in with Microsoft Entra ID through the normal Power Platform sign-in experience.<\/p>\n<p><strong>Authorization<\/strong> is about what that signed-in user is allowed to do.<\/p>\n<p><strong>Data security<\/strong> is about which Dataverse records and operations the user can reach. In Dataverse that comes down to security roles, table privileges, access levels, record ownership, teams and record sharing.<\/p>\n<p>Here\u2019s how the layers divide the work:<\/p>\n<table width=\"602\">\n<thead>\n<tr>\n<td width=\"213\"><strong>Layer<\/strong><\/td>\n<td width=\"388\"><strong>Responsibility<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td width=\"213\">Microsoft Entra ID<\/td>\n<td width=\"388\">Authenticates the user<\/td>\n<\/tr>\n<tr>\n<td width=\"213\">Power Platform application\/environment controls<\/td>\n<td width=\"388\">Controls applicable application and environment access<\/td>\n<\/tr>\n<tr>\n<td width=\"213\">Dataverse security<\/td>\n<td width=\"388\">Enforces data privileges and record access<\/td>\n<\/tr>\n<tr>\n<td width=\"213\">React UI<\/td>\n<td width=\"388\">Improves the user experience by showing relevant actions<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Step 2: Configure Security Roles for Different Users<\/strong><\/p>\n<p>Start in the Power Platform admin center. Open your environment, go to <strong>Settings &gt; Users + permissions &gt; Security roles<\/strong>, and create (or copy) a role for each type of user, for example \u201cCase \u2013 Sales Rep\u201d and \u201cCase \u2013 Service Agent\u201d. On the Case table, these are the privileges you\u2019ll care about:<\/p>\n<table width=\"602\">\n<thead>\n<tr>\n<td width=\"147\"><strong>Privilege<\/strong><\/td>\n<td width=\"455\"><strong>What it controls<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td width=\"147\">Read<\/td>\n<td width=\"455\">Viewing Case records<\/td>\n<\/tr>\n<tr>\n<td width=\"147\">Create<\/td>\n<td width=\"455\">Creating new Cases<\/td>\n<\/tr>\n<tr>\n<td width=\"147\">Write<\/td>\n<td width=\"455\">Updating existing Cases<\/td>\n<\/tr>\n<tr>\n<td width=\"147\">Delete<\/td>\n<td width=\"455\">Deleting Cases<\/td>\n<\/tr>\n<tr>\n<td width=\"147\">Append \/ Append To<\/td>\n<td width=\"455\">Linking records together, such as attaching a Case to a Contact or Account<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Every privilege also has an <strong>access level<\/strong>: None, User, Business Unit, Parent: Child Business Units, or Organization. This matters more than people expect. Read on the Case table doesn\u2019t mean the user can see every Case. With User-level Read, they see the Cases they own, plus anything shared with them or owned by a team they belong to.<\/p>\n<p>Two things to keep in mind while you set this up. First, stick to least privilege, which means giving people only what their job needs. Second, remember that privileges add up. If a user has several roles, or gets access through a team, their effective access is the combination of all of it.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-46988\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-1.png\" alt=\"\" width=\"1363\" height=\"628\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-1.png 1363w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-1-300x138.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-1-1024x472.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-1-768x354.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-1-660x304.png 660w\" sizes=\"(max-width: 1363px) 100vw, 1363px\" \/><\/p>\n<p style=\"text-align: center;\"><strong>Figure 1: Configuring Dataverse privileges for the Case table<\/strong><\/p>\n<p>Figure 1 shows where these settings live: the Case row with an access level for each privilege. For the Sales Representative role in our scenario, you would set Read to User or Business Unit and leave Write and Delete as <strong>None<\/strong>. With that in place, even if someone makes a mistake in the React code, Dataverse will turn down an update or delete request from that user.<\/p>\n<p><strong>Step 3: Connect the Power Apps Code App to Dataverse<\/strong><\/p>\n<p>If you\u2019re starting from scratch, Microsoft\u2019s quickstart creates the project from a Vite template and initializes it like this:<\/p>\n<pre class=\"lang:css gutter:true start:1\">npx degit github:microsoft\/PowerAppsCodeApps\/templates\/vite case-management-app\r\n\r\ncd case-management-app\r\n\r\nnpm install --global @microsoft\/power-apps-cli\r\n\r\nnpm install --global @microsoft\/power-apps\r\n\r\nnpm install\r\n\r\npa app init --display-name \"Case Management\" --environment-id &lt;environment-id<\/pre>\n<p>The CLI asks you to sign in with your Power Platform account if you aren\u2019t already. Next, add the Case table using its logical name, incident:<\/p>\n<pre class=\"lang:css gutter:true start:1\">pa app add data-source --connector dataverse --table incident<\/pre>\n<p>If you\u2019re still on the older PAC CLI (Microsoft has said it will be deprecated in a future release), the equivalent is:<\/p>\n<pre class=\"lang:css gutter:true start:1\">pac code add-data-source -a dataverse -t incident<\/pre>\n<p>The CLI may ask for your organization URL. Either way, the command generates model and service files under src\/generated\/, in the models and services folders.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-46989 aligncenter\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-2.png\" alt=\"\" width=\"524\" height=\"190\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-2.png 524w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-2-300x109.png 300w\" sizes=\"(max-width: 524px) 100vw, 524px\" \/><\/p>\n<p style=\"text-align: center;\"><strong>Figure 2: Adding the Dataverse Case table as a data source<\/strong><\/p>\n<p>Generated names follow the table. In Microsoft\u2019s own examples the Accounts table produces AccountsModel.ts and AccountsService.ts. In our project the Case table produced IncidentsModel.ts and IncidentsService.ts, so that\u2019s the service we\u2019ll call in the snippets below. Yours may differ, so look at what was generated in your own project instead of guessing.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-46990 aligncenter\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-3.png\" alt=\"\" width=\"267\" height=\"145\" \/><\/p>\n<p style=\"text-align: center;\"><strong>Figure 3: Generated files created for Dataverse integration<\/strong><\/p>\n<p>A quick note on SDK setup. Some Microsoft samples show an explicit initialize() call before any data request. Our demo doesn\u2019t add its own initialization code. It uses the generated service once the app loads through Power Apps (more on that in Step 6). Check the docs for your template version and follow what they recommend.<\/p>\n<p style=\"text-align: left;\"><strong>Step 4: Build a User-Friendly Case Management Interface<\/strong><\/p>\n<p>Now for the UI. It\u2019s perfectly fine to show or hide actions to keep the screen clean. Here\u2019s a small component that takes two flags and decides which buttons to render:<\/p>\n<pre class=\"lang:css gutter:true start:1\">interface CaseActionsProps {\r\ncanEdit: boolean;\r\n\r\ncanDelete: boolean;\r\n\r\nonEdit: () =&gt; void;\r\n\r\nonDelete: () =&gt; void;\r\n\r\n}\r\n\r\n\/**\r\n\r\n* UI ONLY - controls what the user sees. This is NOT a security boundary.\r\n\r\n* Hiding or showing these buttons does not grant or remove any access:\r\n\r\n* Dataverse enforces update and delete based on the user's security role.\r\n\r\n*\/\r\n\r\nexport function CaseActions({ canEdit, canDelete, onEdit, onDelete }: CaseActionsProps) {\r\nreturn (\r\n\r\n&lt;div&gt;\r\n\r\n{canEdit &amp;&amp; &lt;button type=\"button\" onClick={onEdit}&gt;Edit&lt;\/button&gt;}\r\n\r\n{canDelete &amp;&amp; &lt;button type=\"button\" onClick={onDelete}&gt;Delete&lt;\/button&gt;}\r\n\r\n&lt;\/div&gt;\r\n\r\n);\r\n\r\n}<\/pre>\n<p>It\u2019s worth being clear about what this does. It controls what the user sees, and nothing else.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-46991\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-4.png\" alt=\"\" width=\"980\" height=\"300\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-4.png 980w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-4-300x92.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-4-768x235.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-4-660x202.png 660w\" sizes=\"(max-width: 980px) 100vw, 980px\" \/><\/p>\n<p style=\"text-align: center;\"><strong>Figure 4: The CaseActions component, marked clearly as UI only<\/strong><\/p>\n<p>The canEdit and canDelete values must not be treated as the security boundary.<\/p>\n<p>If a browser-side boolean flipping to true were enough to get at sensitive data, there would be no security at all. Whatever the UI shows, Dataverse still checks the request against the signed-in user\u2019s effective permissions.<\/p>\n<p>A quick note on where canEdit and canDelete come from. In this article they\u2019re conceptual UI state, driven by a clearly labelled demo setting. We\u2019re not calling a Power Apps SDK method to read the user\u2019s Dataverse privileges, because we couldn\u2019t find one documented. That\u2019s okay. If the flags are wrong, the worst case is a button that shows up and then fails safely, which is what Step 5 handles.<\/p>\n<p>By default the demo app hides Edit and Delete (the limited view). A Demo mode switch turns them on, so we can show that Dataverse refuses the request even when the buttons are visible.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-46992\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-5.png\" alt=\"\" width=\"1365\" height=\"602\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-5.png 1365w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-5-300x132.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-5-1024x452.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-5-768x339.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-5-660x291.png 660w\" sizes=\"(max-width: 1365px) 100vw, 1365px\" \/><\/p>\n<p><strong>Figure 5: Case Management interface for a user with limited access (Demo mode off, view only)<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-46993\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-6.png\" alt=\"\" width=\"1365\" height=\"620\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-6.png 1365w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-6-300x136.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-6-1024x465.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-6-768x349.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-6-660x300.png 660w\" sizes=\"(max-width: 1365px) 100vw, 1365px\" \/><\/p>\n<p style=\"text-align: center;\"><strong>Figure 6: The same app with Demo mode on, showing Edit and Delete for testing<\/strong><\/p>\n<p><strong>Step 5: Read, Update and Delete with the Generated Service, and Handle Denials Safely<\/strong><\/p>\n<p><strong>\u00a0<\/strong>Reading data goes through the generated service. Microsoft\u2019s docs show getAll accepting select, filter, orderBy and top:<\/p>\n<p>import<\/p>\n<pre class=\"lang:css gutter:true start:1\">{ IncidentsService } from \".\/generated\/services\/IncidentsService\";\r\n\r\n\u00a0\r\n\r\nconst loadCases = async () =&gt; {\r\n\r\ntry {\r\n\r\nconst result = await IncidentsService.getAll({\r\n\r\nselect: [\"title\", \"ticketnumber\", \"statuscode\", \"createdon\"],\r\n\r\norderBy: [\"createdon desc\"],\r\n\r\ntop: 50,\r\n\r\n});\r\n\r\nreturn result.data ?? [];\r\n\r\n} catch (err) {\r\n\r\nconsole.error(\"Failed to load cases:\", err);\r\n\r\nreturn [];\r\n\r\n}\r\n\r\n};<\/pre>\n<p>Notice there\u2019s no role-based filtering here. The user gets back the rows Dataverse lets them read, and that\u2019s the point.<\/p>\n<p>For updates, send only the columns you\u2019re actually changing. Microsoft specifically warns that sending unchanged values can fire business logic and muddy your audit data. There\u2019s one more catch: the generated service returns an operation result with success and error fields, so a denied call might come back as a failed result instead of throwing an error. Handle both:<\/p>\n<pre class=\"lang:css gutter:true start:1\">type Result = { ok: true } | { ok: false; message: string };\r\n\r\nconst UPDATE_DENIED =\r\n\r\n\"You don't have permission to update this case, or it can't be changed right now.\";\r\n\r\nexport async function updateCase(\r\n\r\nid: string,\r\n\r\nchanges: Partial&lt;Pick&lt;Incidents, \"title\"&gt;&gt;\r\n\r\n): Promise&lt;Result&gt; {\r\n\r\ntry {\r\n\r\nconst res = await IncidentsService.update(id, changes);\r\n\r\nif (!res.success) {\r\n\r\nconsole.error(\"updateCase failed (result):\", res.error);\r\n\r\nreturn { ok: false, message: UPDATE_DENIED };\r\n\r\n}\r\n\r\nreturn { ok: true };\r\n\r\n} catch (err) {\r\n\r\nconsole.error(\"updateCase failed (thrown):\", err);\r\n\r\nreturn { ok: false, message: UPDATE_DENIED };\r\n\r\n}\r\n\r\n}<\/pre>\n<p>The function returns a small result object instead of throwing into the UI, so the screen can show a plain-language message and the technical detail stays in the console.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-46994\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-7.png\" alt=\"\" width=\"980\" height=\"300\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-7.png 980w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-7-300x92.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-7-768x235.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-7-660x202.png 660w\" sizes=\"(max-width: 980px) 100vw, 980px\" \/><\/p>\n<p style=\"text-align: center;\"><strong>Figure 7: The update handler checks both a failed result and a thrown error<\/strong><\/p>\n<p>Deleting needs a bit more care. In our project the generated IncidentsService.delete returns nothing, so there\u2019s no result to check. If Dataverse refused the delete and the call came back quietly, the app would think it had worked. To avoid that, the app confirms the outcome by trying to read the record again: const DELETE_DENIED = &#8220;You don&#8217;t have permission to delete this case, or it can&#8217;t be deleted right now.&#8221;; \u00a0 export async function deleteCase(id: string): Promise&lt;Result&gt; { try { await IncidentsService.delete(id); } catch (err) { console.error(&#8220;deleteCase failed (thrown):&#8221;, err); return { ok: false, message: DELETE_DENIED }; } \u00a0 \/\/ delete returns nothing, so check whether the record is really gone let stillThere = false; try { const check = await IncidentsService.get(id); stillThere = check.success &amp;&amp; !!check.data; } catch { stillThere = false; \/\/ can&#8217;t be read any more, so it was deleted } \u00a0 if (stillThere) { console.error(&#8220;deleteCase: record is still readable after delete&#8221;); return { ok: false, message: DELETE_DENIED }; } return { ok: true }; } Whichever operation you call, the same two habits apply. Catch the failure and show a friendly message, while logging the technical detail for yourself. And don\u2019t treat a denied request as a bug. It means the security model did its job, so test for it on purpose with each of your test users. <strong>Step 6: Run the App and Test Each Role<\/strong> \u00a0 Start the app locally: pa app run The output includes a URL labelled <strong>Local Play<\/strong>. Open that URL, not localhost directly, in a browser profile that\u2019s signed in to your Power Platform tenant. If you open the localhost address on its own, the app can\u2019t reach the platform and will sit on \u201cLoading cases\u2026\u201d. If Chrome or Edge asks about local network access, allow it. If port 3000 is busy, run pa app run &#8211;port &lt;port&gt;. Local Play uses whoever is signed in in that browser profile. To test each role, use a separate browser profile or an InPrivate window per test user. Alternatively, publish with npm run build and pa app push, share the app from make.powerapps.com, and open it as each user. First, a user who has Write access edits a Case. Dataverse accepts the change, and the app shows a confirmation: <img decoding=\"async\" class=\"alignnone size-full wp-image-46995\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-8.png\" alt=\"\" width=\"1365\" height=\"631\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-8.png 1365w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-8-300x139.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-8-1024x473.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-8-768x355.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-8-660x305.png 660w\" sizes=\"(max-width: 1365px) 100vw, 1365px\" \/><\/p>\n<p style=\"text-align: center;\"><strong>Figure 8: A successful update by a user with Write access<\/strong><\/p>\n<p>Now a limited-privilege user turns on Demo mode and tries to edit. The button is visible, but Dataverse refuses the update, and the app shows a friendly message while the title stays as it was: <img decoding=\"async\" class=\"alignnone size-full wp-image-46997\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-9.png\" alt=\"\" width=\"1365\" height=\"617\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-9.png 1365w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-9-300x136.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-9-1024x463.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-9-768x347.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-9-660x298.png 660w\" sizes=\"(max-width: 1365px) 100vw, 1365px\" \/><\/p>\n<p style=\"text-align: center;\"><strong>Figure 9: Handling a denied Dataverse update gracefully<\/strong><\/p>\n<p>The same user then tries Delete. Dataverse refuses again, and the Case stays in the list: <img decoding=\"async\" class=\"alignnone size-full wp-image-46998\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-10.png\" alt=\"\" width=\"1365\" height=\"599\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-10.png 1365w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-10-300x132.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-10-1024x449.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-10-768x337.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-10-660x290.png 660w\" sizes=\"(max-width: 1365px) 100vw, 1365px\" \/><\/p>\n<p style=\"text-align: center;\"><strong>Figure 10: A denied delete: the app shows a message and the Case stays in the list<\/strong><\/p>\n<p>Those two screenshots are the whole point of the article. The UI offered the action, and the platform still said no.<\/p>\n<h1>Conclusion<\/h1>\n<p>Code Apps let you build exactly the interface you want, but they don\u2019t change who\u2019s responsible for protecting the data. In our Case Management app, React decides what to show, and Dataverse decides what each person can actually read, update or delete. So set up least-privilege roles, test with real users, handle denied requests gracefully, and think of the UI as a convenience rather than a gatekeeper. Do that, and a mistake in the front end won\u2019t turn into a data problem.<\/p>\n<h2><strong>Frequently Asked Questions<\/strong><\/h2>\n<h3><strong>1. What are Power Apps Code Apps in Dynamics 365?<\/strong><\/h3>\n<p>Power Apps Code Apps allow developers to build custom applications using React and TypeScript with the Power Apps SDK and CLI. They run within the Power Platform and connect to Dataverse and other connectors while providing flexibility over the user interface and development workflow.<\/p>\n<h3><strong>2. How does Dataverse security work in Power Apps Code Apps?<\/strong><\/h3>\n<p>Dataverse enforces data security based on users&#8217; security roles, table privileges, access levels, record ownership, teams, and record sharing. The app accesses Dataverse as the signed-in user, so users can only perform operations and access records permitted by their effective permissions.<\/p>\n<h3><strong>3. How does authentication work in Power Apps Code Apps?<\/strong><\/h3>\n<p>Power Apps Code Apps use Microsoft Entra ID to authenticate users through the standard Power Platform sign-in experience. Once signed in, the app accesses Dataverse as the authenticated user, so developers don&#8217;t need to build a separate login and token-handling process for the app.<\/p>\n<h3><strong>4. How do you handle access-denied errors in Power Apps Code Apps?<\/strong><\/h3>\n<p>You can handle access-denied errors by catching failed Dataverse requests and displaying user-friendly messages. For example, if a user tries to update or delete a Case without the required permissions, the app should handle the failure gracefully, show a clear message, and log technical details for troubleshooting.<\/p>\n<h3><strong>5. Why is hiding buttons not enough to secure a Power Apps Code App?<\/strong><\/h3>\n<p>Hiding buttons such as Edit or Delete only controls what users see in the interface. It does not prevent them from performing those operations. Dataverse enforces the actual security permissions based on the user&#8217;s security roles and access rights, even when an action is visible in the app. <script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [{\n    \"@type\": \"Question\",\n    \"name\": \"What are Power Apps Code Apps in Dynamics 365?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Power Apps Code Apps allow developers to build custom applications using React and TypeScript with the Power Apps SDK and CLI. They run within the Power Platform and connect to Dataverse and other connectors while providing flexibility over the user interface and development workflow.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"How does Dataverse security work in Power Apps Code Apps?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Dataverse enforces data security based on users' security roles, table privileges, access levels, record ownership, teams, and record sharing. The app accesses Dataverse as the signed-in user, so users can only perform operations and access records permitted by their effective permissions.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"How does authentication work in Power Apps Code Apps?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Power Apps Code Apps use Microsoft Entra ID to authenticate users through the standard Power Platform sign-in experience. Once signed in, the app accesses Dataverse as the authenticated user, so developers don't need to build a separate login and token-handling process for the app.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"How do you handle access-denied errors in Power Apps Code Apps?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"You can handle access-denied errors by catching failed Dataverse requests and displaying user-friendly messages. For example, if a user tries to update or delete a Case without the required permissions, the app should handle the failure gracefully, show a clear message, and log technical details for troubleshooting.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"Why is hiding buttons not enough to secure a Power Apps Code App?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Hiding buttons such as Edit or Delete only controls what users see in the interface. It does not prevent them from performing those operations. Dataverse enforces the actual security permissions based on the user's security roles and access rights, even when an action is visible in the app.\"\n    }\n  }]\n}\n<\/script><\/p>\n<pre class=\"lang:css gutter:true start:1\"><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you\u2019ve built business apps on the Power Platform, you\u2019ve probably hit this wall. Canvas apps and model-driven apps are great for getting something running quickly, but once a client asks for a very custom interface, a specific design system, or a front end your team can build and test like any other web project,\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/\">Read More: Building Secure Power Apps Code Apps for Dynamics 365 with\u2026 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2361],"tags":[],"class_list":["post-46987","post","type-post","status-publish","format-standard","hentry","category-technical"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"If you\u2019ve built business apps on the Power Platform, you\u2019ve probably hit this wall. Canvas apps and model-driven apps are great for getting something running quickly, but once a client asks for a very custom interface, a specific design system, or a front end your team can build and test like any other web project,\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"Sam Kumar\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"If you\u2019ve built business apps on the Power Platform, you\u2019ve probably hit this wall. Canvas apps and model-driven apps are great for getting something running quickly, but once a client asks for a very custom interface, a specific design system, or a front end your team can build and test like any other web project,\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-1.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-1.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1363\" \/>\n\t\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-11-25T12:59:14+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-11-25T13:01:23+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inogicindia\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"If you\u2019ve built business apps on the Power Platform, you\u2019ve probably hit this wall. Canvas apps and model-driven apps are great for getting something running quickly, but once a client asks for a very custom interface, a specific design system, or a front end your team can build and test like any other web project,\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-1.png\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Sam Kumar\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"14 minutes\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2026\\\/11\\\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\\\/#blogposting\",\"name\":\"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sam-kumar\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/P-tech-1.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2026\\\/11\\\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\\\/#articleImage\",\"width\":1363,\"height\":628},\"datePublished\":\"2026-11-25T18:29:14+05:30\",\"dateModified\":\"2026-11-25T18:31:23+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2026\\\/11\\\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2026\\\/11\\\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\\\/#webpage\"},\"articleSection\":\"Technical\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2026\\\/11\\\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/technical\\\/#listItem\",\"name\":\"Technical\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/technical\\\/#listItem\",\"position\":2,\"name\":\"Technical\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/technical\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2026\\\/11\\\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\\\/#listItem\",\"name\":\"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2026\\\/11\\\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\\\/#listItem\",\"position\":3,\"name\":\"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/technical\\\/#listItem\",\"name\":\"Technical\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"By Inogic\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2026\\\/11\\\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2026\\\/11\\\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inogicindia\",\"https:\\\/\\\/twitter.com\\\/inogic\",\"https:\\\/\\\/www.instagram.com\\\/inogicindia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCM4V7ousgLSu1hbOEv4DUuQ\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/inogicindia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sam-kumar\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sam-kumar\\\/\",\"name\":\"Sam Kumar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2026\\\/11\\\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ede4386d06665d3d5ee2ecccb6c36df60385d561e317372bd89dffb7e4b1de2f?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Sam Kumar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2026\\\/11\\\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2026\\\/11\\\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\\\/\",\"name\":\"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"If you\\u2019ve built business apps on the Power Platform, you\\u2019ve probably hit this wall. Canvas apps and model-driven apps are great for getting something running quickly, but once a client asks for a very custom interface, a specific design system, or a front end your team can build and test like any other web project,\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2026\\\/11\\\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sam-kumar\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/sam-kumar\\\/#author\"},\"datePublished\":\"2026-11-25T18:29:14+05:30\",\"dateModified\":\"2026-11-25T18:31:23+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"alternateName\":\"Inogic\",\"description\":\"By Inogic\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse - Microsoft Dynamics 365 CRM Tips and Tricks","description":"If you\u2019ve built business apps on the Power Platform, you\u2019ve probably hit this wall. Canvas apps and model-driven apps are great for getting something running quickly, but once a client asks for a very custom interface, a specific design system, or a front end your team can build and test like any other web project,","canonical_url":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/#blogposting","name":"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/sam-kumar\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-1.png","@id":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/#articleImage","width":1363,"height":628},"datePublished":"2026-11-25T18:29:14+05:30","dateModified":"2026-11-25T18:31:23+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/#webpage"},"articleSection":"Technical"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/www.inogic.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/technical\/#listItem","name":"Technical"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/technical\/#listItem","position":2,"name":"Technical","item":"https:\/\/www.inogic.com\/blog\/category\/technical\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/#listItem","name":"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/#listItem","position":3,"name":"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/technical\/#listItem","name":"Technical"}}]},{"@type":"Organization","@id":"https:\/\/www.inogic.com\/blog\/#organization","name":"Microsoft Dynamics 365 CRM Tips and Tricks","description":"By Inogic","url":"https:\/\/www.inogic.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/inogicindia","https:\/\/twitter.com\/inogic","https:\/\/www.instagram.com\/inogicindia\/","https:\/\/www.youtube.com\/channel\/UCM4V7ousgLSu1hbOEv4DUuQ","https:\/\/www.linkedin.com\/company\/inogicindia"]},{"@type":"Person","@id":"https:\/\/www.inogic.com\/blog\/author\/sam-kumar\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/sam-kumar\/","name":"Sam Kumar","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/ede4386d06665d3d5ee2ecccb6c36df60385d561e317372bd89dffb7e4b1de2f?s=96&d=mm&r=g","width":96,"height":96,"caption":"Sam Kumar"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/","name":"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse - Microsoft Dynamics 365 CRM Tips and Tricks","description":"If you\u2019ve built business apps on the Power Platform, you\u2019ve probably hit this wall. Canvas apps and model-driven apps are great for getting something running quickly, but once a client asks for a very custom interface, a specific design system, or a front end your team can build and test like any other web project,","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/sam-kumar\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/sam-kumar\/#author"},"datePublished":"2026-11-25T18:29:14+05:30","dateModified":"2026-11-25T18:31:23+05:30"},{"@type":"WebSite","@id":"https:\/\/www.inogic.com\/blog\/#website","url":"https:\/\/www.inogic.com\/blog\/","name":"Microsoft Dynamics 365 CRM Tips and Tricks","alternateName":"Inogic","description":"By Inogic","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic","og:type":"article","og:title":"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"If you\u2019ve built business apps on the Power Platform, you\u2019ve probably hit this wall. Canvas apps and model-driven apps are great for getting something running quickly, but once a client asks for a very custom interface, a specific design system, or a front end your team can build and test like any other web project,","og:url":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-1.png","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-1.png","og:image:width":1363,"og:image:height":628,"article:published_time":"2026-11-25T12:59:14+00:00","article:modified_time":"2026-11-25T13:01:23+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"If you\u2019ve built business apps on the Power Platform, you\u2019ve probably hit this wall. Canvas apps and model-driven apps are great for getting something running quickly, but once a client asks for a very custom interface, a specific design system, or a front end your team can build and test like any other web project,","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2026\/11\/P-tech-1.png","twitter:label1":"Written by","twitter:data1":"Sam Kumar","twitter:label2":"Est. reading time","twitter:data2":"14 minutes"},"aioseo_meta_data":{"post_id":"46987","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":{"subject":"","preview":"","content":""},"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2026-11-25 12:27:26","updated":"2026-11-25 13:01:23","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/technical\/\" title=\"Technical\">Technical<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tBuilding Secure Power Apps Code Apps for Dynamics 365 with Dataverse\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog\/"},{"label":"Technical","link":"https:\/\/www.inogic.com\/blog\/category\/technical\/"},{"label":"Building Secure Power Apps Code Apps for Dynamics 365 with Dataverse","link":"https:\/\/www.inogic.com\/blog\/2026\/11\/building-secure-power-apps-code-apps-for-dynamics-365-with-dataverse\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/46987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=46987"}],"version-history":[{"count":3,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/46987\/revisions"}],"predecessor-version":[{"id":47001,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/46987\/revisions\/47001"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=46987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=46987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=46987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}