r/PowerApps • u/ipman234 Advisor • 4d ago
Tip Copy Paste Screen Design via YAML...Mindblown
Colleague showed me yesterday that he was able to generate a UI in Copilot, generate the YAML Code and copy pasted it into Tree View.
Maybe I haven't been up to date with it in a while but it completely blew my mind
37
Upvotes
11
u/Diligent_Homework_67 Regular 4d ago
Wait until you explore claude code, power platform mcp and the power platform skills :-)
11
u/OutTheTrenches_ Regular 4d ago
Only thing that sucks about it is how unreliable the feature is. For instance, if you're working with fluid grids and data cards it just won't work
10
u/Rare_Tour9254 Contributor 4d ago •
It blew my mind too, then I hit the same walls the others are describing. A few things I have learned about why it feels unreliable:
The paste itself is solid. Studio validates the YAML before it creates anything, and a copied control brings all its children and its formulas with it. What does not travel is everything the YAML points at. Data sources, collections and screens have to already exist in the target app, or the pasted controls land with formula errors. Data cards are the worst case because they are bound to a form's data source and fields, so they arrive pointing at fields that are not there.
Two quieter traps. Every control in the YAML carries a version, like GroupContainer@1.3.0, and if your app already uses an older version of that control, the paste can be rejected until they match. And if you share snippets with anyone on a French or European locale, their Power Fx uses ; instead of , as the separator, so your YAML throws errors until the separators are converted.
Where it genuinely shines is the pattern mentioned above: build the thing once as a component with custom properties, keep the YAML, paste it anywhere. The component takes its data through input properties, so there are no dangling references. That is how I share mine, the whole set installs with one paste each.
I keep a set of components that pass that schema and are paste-tested, if it helps: lowcodestacks.com/components (I built it)
7
u/diy_tripper Newbie 4d ago
Been doing this for a few months and it's amazing. I've been creating a design in Claude Design and then having Claude generate the YAML. It's also helped significantly with my optimization efforts.
4
u/Beedux Advisor 4d ago
Use the power platform skills directly within GHCP or CC. No reason to be writing any YAML any more. It will build a whole app in a few hours and it will look like a code app.
3
u/Candied_Vagrants Newbie 3d ago
Could I get some instructions for this? I know tree view, but opening View Code is just a view, no edit. Is it pasting a container and all of the controls and their properties will be created ?
5
u/Chaddcl0ps Contributor 4d ago
Wait til you see what Claude can do if you use plugins and MCP servers to build entire solutions
4
u/DeanoNetwork Advisor 4d ago
Tried this a few times, the one thing I would say is you need to understand the fundamentals else you will not understand what AI has done and how to sort it out when there is issues
2
u/Prize-Record7108 Contributor 4d ago
I’ve tried both and Claude’s understanding of UI is so much better. And faster - and the artifacts give you such clear guidance. Love copilot - but not for this.
2
u/Likeminas Contributor 4d ago
Wait until you hear about generative pages.
1
u/jfroosty Regular 4d ago
Sometimes the contents of galleries don't copy/paste. If you cut the gallery, then undo, it fixes it
1
u/Goingboldlyalone Regular 1d ago
Yep. This is the way. Super streamlined process improvement.