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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,989)