Using PowerFX with commands for cloning records with N to N relationship


The article explains how to create a command bar to clone a record with many-to-many relationships in Model-Driven-Apps using PowerFX. The author creates two tables for the demonstration and creates many-to-many relationships between them. They then initiate the command designer and create a button with the label name "Clone Record". The author uses the Confirm method to give a dialog for the user to select and if the user approves it, then they use the With function to give variables scope and formula that they want to run. Finally, they loop all the allSubjects and make an association (N-to-N) between the new record and the allSubjects using the Relate function. The article includes screenshots and code snippets to help readers understand the process.


Article 19m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time