Hey all,
I've got a custom component built with Power Apps component framework which I need to include into a larger, pre-existing solution. Is there any documentation on how to go about doing that? I've got it building into its own solution currently, but we're trying to avoid needing to distribute one big solution with all the entities and reports and such, then a dozen little solutions each with their own custom component.
Hi @Anonymous ,
There are a few ways to accomplish that.
1. The manual way:
- you create a cdsproj Project for the PCFs (
- "pac solution init",
- "pac solution add-reference").
Using it you can create an unmanaged solution for the PCFs, which you can import in your environment. (Take care to generate the release unmanaged version, as I described in my blog).
- Then you can include the components in the target solution using the customizations (since the PCFs are unmanaged, you can include components in a solution, like any other customizing)
2. Manual way 2:
@a33ik just posted a new blog with 2 tips. In the second tip, he describes a way to upload PCF in release version using "pac pcf push" (not absolutely sure if that's supported, but I suppose it works just fine, and you don't have a separate project for the solution). Here is his blog.
3. Clone the target solution in a cdsproj
- You can use "pac solution clone" to export and extract the customizations of your target solution in an "cdsproj".
- Then use "pac solution add-reference" to add your PCF to the cdsproj you cloned
- Using "msbuild /p:configuration=Release" you will get a zip for the target solution including the last build of the PCFs (at this step, you don't need an environment for the generation)
4. Way (3.) using the DevOps Pipeline
You can use DevOps Pipelines when you have a project created with "pac solution clone", as I've wrote in this blog.
Hope it helps,
Diana
WarrenBelz
81
Most Valuable Professional
mmbr1606
53
Super User 2025 Season 1
stampcoin
48