web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Process for committing...
Power Apps
Answered

Process for committing changes to a branch?

(0) ShareShare
ReportReport
Posted on by 664

Let's say I have a feature branch, created from main. My updates for this feature include changes to a canvas app in a solution. Is there a way to automate the process of extracting the solution to source control when it's not in the main branch? I know how to create a pipeline to do this but when I create the pipeline I have to first select the branch. So is there any way to have a pipeline that points to a dynamic branch so I can run it on whatever branch I need to?

Ultimately I'd like to 

  1. Create the branch
  2. Complete dev work
  3. Add the work to the new branch
  4. Create a pull request and merge to main
I have the same question (0)
  • Verified answer
    ScottDurow Profile Picture
    1,039 on at

    I think the challenge you are referring to is where you need your pipeline to point to an envrionment to unpack from depending on the branch you are running it on. 

    When you run a pipeline you can select the branch - I then use a convention where I use a variable set that is named the same as the branch to provide the SPN etc. to use to connect to the corresponding environment that goes with that branch.
    I then load that variable set using something like:

    variables:
    - group: branch-environment-${{ variables['Build.SourceBranchName'] }}

     

    This way you can have a single pipeline that can be run on different branches and will pick up the environment details registered for that branch.

    Hope this helps

  • Cooper01 Profile Picture
    664 on at

    OMG. Have been running my pipelines from the editor and did not realize there was a Branch/tag ddl when you run it from the export list. I was mainly trying to avoid having to make developers spin up a new pipeline for each branch they create so I believe this solves the issue. Thanks @ScottDurow !!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard