# How do I deploy a Power Apps code app into a specific solution and share it?

Exam: AB-400 — Power Platform Developer Associate
Knowledge domain: Extend the user experience (25–30%)
Updated: 2026-11-25T06:47:17.902322+00:00
HTML: https://learningpathx.com/faq/AB-400/ab400-deploy-and-share-code-app-solution.html

## Also asked as

- How do I publish a code app to a named Dataverse solution and verify access?
- How can I check solution membership and user access after pushing a Power Apps code app?

Build the code app and use `pa app push --solution-id <solution-id>` to publish it into a specific solution when the configured environment has Dataverse. The argument is the solution GUID. After publishing, verify membership and access in Power Apps before promoting the solution.

From the approved project root, confirm the environment, run `npm run build` and push with the intended GUID. For automation, the documented environment variable is `PA_CLI_SOLUTION_ID`. Without explicit targeting, first publish tries the preferred solution and then the default when available. Later publishes preserve existing membership when no solution is specified. Explicit targeting on a later publish can add membership in another solution. Environments without Dataverse can publish without a solution. Use **Solutions → Add existing → App → Code app** if you need to add an existing app through the maker portal.

Use the solution export/import or approved pipeline path to promote it. Keep the frontend source in its own version control. If you plan to use the platform's native source integration, check current code-app support before selecting that path. Supply the target connections and environment variable values, and provision any required data or external resources separately. In the target, confirm licensing, code app enablement and sharing with a non-maker identity. Test launch first and then the intended data operation. A user can have launch access and still lack data permissions.

[Code app ALM](https://learn.microsoft.com/en-us/power-apps/developer/code-apps/how-to/alm) · [Code app features and requirements](https://learn.microsoft.com/en-us/power-apps/developer/code-apps/overview) · [Code app quickstart](https://learn.microsoft.com/en-us/power-apps/developer/code-apps/how-to/create-an-app-from-scratch)

Source: [AB-400: Deploying and Troubleshooting Power Apps Code Apps](https://learningpathx.com/news/ab-400-deploying-and-troubleshooting-power-apps-code-apps.html)
