Command Bar | Power Fx | Clone a record along with child records
Image Source: Shutterstock.com
Power Apps
Jul 10, 2023 1:00 PM

Command Bar | Power Fx | Clone a record along with child records

by HubSite 365 about Rajeev Pentyala

Senior Software Engineer at Microsoft Power CAT Team

Citizen DeveloperPower AppsLearning Selection

In one of the previous articles, I’ve explained how to perform a simple record level clone using Power Fx formulas. In this article,

The article discusses issues surrounding record cloning using Power Fx in a Model Driven App with three Dataverse tables.

  • The application holds Customer, Cars, and Accessories tables.
  • Customer records include demographics such as name, address, and contact information.
  • The Cars table, a child record of Customer, holds records of cars associated with each customer.
  • The Accessories table is a child record of the Car table, with each car having multiple linked accessories.
The author also expressed a need for a Clone option on the Customer form to clone and create a new Customer record along with its child records.

 

About Record Cloning in PowerFx

Record cloning in Power Fx involves creating a new record which is a copy of an existing one. It's particularly useful in scenarios of complex data which includes parent and child records. It helps to avoid the effort of manually entering the same data for new records. The Clone option in an application serves the purpose of duplicating a record along with its associated details.

 

Read the full article Command Bar | Power Fx | Clone a record along with child records

Learn about Command Bar | Power Fx | Clone a record along with child records

 

Microsoft Power Fx is a powerful tool that can be used to clone a record along with its child records. When using this tool, it is important to understand the data structure of the Model Driven App being used. For example, the App could have three Dataverse tables: Customer, Cars, and Accessories. Customer holds demographic information such as name, address, and contact information. Cars is a child record of Customer, meaning each Customer can have multiple cars associated with them. Accessories is a child record of Car table, meaning each car can have multiple accessories linked to it. By using Power Fx, a Clone option can be added to the Customer form that will clone and create a new Customer along with its related Cars and Accessories. Through Power Fx, it is possible to specify which fields should be cloned and how the records should be linked. This article explains how to use Power Fx to clone a record along with its child records.

 

More links on about Command Bar | Power Fx | Clone a record along with child records

Clone records with Power Fx & custom command bar button
Oct 9, 2021 — How to copy an existing record in Model-driven Power Apps, along with its child records, using the modern command designer & Power Fx ...
Solved: Power Fx Command Bar - Cloning a child record and
Nov 22, 2021 — The child record is shown in a subgrid on a form for the parent record. As such, the child record has a lookup column that relates it to the ...
How to Clone records in Modern Commanding
Feb 9, 2023 — Once the Main form is open, click on the New button under the commands search box on the left panel, and select Command from the drop down menu.
Clone records with Power Fx & custom command bar button
More powerful command bar buttons for your Model-driven #PowerApps, this time cloning records & child records with #PowerFx: https://jukkan.com/clone ...
How to Copy / Clone / Duplicate Records and its child ...
Aug 8, 2022 — How to Copy / Clone / Duplicate Records and its child records (up to N levels) in just 1-Click using Zap Copy Record App for PowerApps / ...
How to update multiple records in a model-driven app grid ...
Oct 4, 2022 — This post outlines, the most performant way of applying updates to multiple records from a Power Fx command button. Step 1 - Add your button.
Power Platform & Dynamics CRM Tip Of The Day
May 18, 2022 — You can create records in flow and bypass required fields by using an Update statement action and generating a new ID using the guid() ...

Keywords

Model-Driven App | Power Platform | Clone Record | Duplicate Record | Record Cloning