cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bhavin
Frequent Visitor

Can we clone powerapps application using code

Hi,

As we know we can create a replica of any application by the "Save As" button and "Export & Import", but is there a way in which I can create a replica of application on a click of any custom button.

4 REPLIES 4

I don’t know if a way to do that. The power apps for makers and administrators can do many different things regarding apps, but I don’t see any way to programmatically clone an app. 

Neither the admin connectors nor the power she’ll admin candlets have the ability to create or clone apps https://powerapps.microsoft.com/en-us/blog/new-connectors-for-powerapps-and-flow-resources/

 

can you share more of the why behind your ask? There might be another way to approach it. For example if it is to provide reusable starting points for makers you could use a component library. If it is to have different groups using a copy of the same app you could use the power platform build tools and quickly spin up new copies in different environments. https://docs.microsoft.com/en-us/power-platform/alm/devops-build-tools

keep in mind when you save as an app the copy has the same data connections as the original so cloning an app a bunch of times may not exactly get you what you are looking for 

Thanks for helping me!

 

Okay, let me share idea behind asking the question.

 

In PowerApps we have predefined app templates to start with our applications, similar way I want to create an application that can be treated as a template. Also, I want to include my application into the template section so that whenever I'm creating new application I always have the option to go for my own template. (I have searched for including my application into the template section but I found that there is no way of achieving it directly. Please let me know if you have a better solution for this).

 

As I know there is trouble achieving it therefore in addition to that I thought cloning of application will also work. Therefore I'm thinking to add a button on click of which the application will be replicated so that whenever anyone visits the application and wanted to clone application they always have a button to create a replica of it.

I think that is a great idea, but I don’t think there is a way to make it that automated. What I’ve done is to export a copy of the template app and have a maker import it in to start their app. 

Okay, Import and Export will make my work done but do Powerapps allow us to do the following?

 

On a click of a button, the application will be exported at a particular directory, and automatically from the same directory, it will import the same file? This will make my work done and also automate the process.

 

 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,131)