web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerApps Yaml code no...
Power Apps
Suggested Answer

PowerApps Yaml code not preserving multiple lines

(1) ShareShare
ReportReport
Posted on by 2

(Note: As a non-native English speaker, this question was translated and generated with the help of AI to ensure clarity.)

I'm developing an internal application using PowerApps.

When I tried to get the diff from the last modification using Yaml code, I noticed that multi-line code set in a control was being combined into a single line, enclosed in double quotes ("").

My application is quite complex, so the code volume is significant. What's puzzling is that even with the same amount of code, some sections are linearized into a single line while others are not. Furthermore, if I copy and paste the same code snippet process by process, sometimes it preserves line breaks and doesn't consolidate into a single line.

Could anyone explain what mechanism or conditions cause the code to be merged into a single line in Yaml? I'm trying to understand why this happens and if there's a way to prevent it, especially for diff tracking.

Categories:
I have the same question (0)
  • Suggested answer
    MichaelFP Profile Picture
    2,001 Moderator on at
    In YAML when you want to use multiple lines of text you can use | to allow to write.
     
    did you tested that?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard