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 / Is it possible to pars...
Power Apps
Answered

Is it possible to parse paragraph marks from a multi-line datacard (when sending to Flow)?

(0) ShareShare
ReportReport
Posted on by 523

I am collecting the content of a form, one of the fields of which is a multi-line Field (Dataverse) & using JSON format to integrate this with flow. eg. "ScopeOfWork" below:

ClearCollect(
 colFormWithNotes,
 {
 State: DataCardValue88.Selected.Abbreviation,
 Zip: DataCardValue42.Text,
 ScopeOfWork: DataCardValue90.Text
 }
);
FlowProjectDetails.Run(JSON(colFormWithNotes))

 However, when I parse the content to JSON in Flow, the paragraph marks from "ScopeOfWork" are missing.

Is there a way to parse a multi-line datacard and retain the paragraph marks?

Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Medoomi 

     

    I assume you collected data in PowerApps to the collection is fine. And you are sending the collection to Flow.

     

    In the flow, when you parse the JSON content in the flow, you have to provide the Scheme which can be generated from the sample.

     

     

    StalinPonnusamy_0-1643319271537.png

     

    • Add Parse JSON action
    • Click "Generate from Sample" for schema and provide the below sample
     {
     "State": "Minneapolis",
     "Zip": 55445,
     "ScopeOfWork": "My Scope"
     }

     

    StalinPonnusamy_1-1643319461153.png

     


    Thanks,
    Stalin - Learn To Illuminate

     

  • Medoomi Profile Picture
    523 on at

    Thanks @StalinPonnusamy ,

    in Flow, I had to adapt the schema to allow for null values, but apart from that, there's not much difference. My final schema is as follows:

    {
     "type": "array",
     "items": {
     "type": "object",
     "properties": {
     "ScopeOfWork": {
     "type": [
     "string",
     "null"
     ]
     },
     "State": {
     "type": [
     "string",
     "null"
     ]
     },
     "Zip": {
     "type": [
     "string",
     "null"
     ]
     }
     },
     "required": []
     }
    }

    But still, the paragraph marks are not parsed.

    Is this because I am using type: string for ScopeOfWork? i.e. should I be using array, or will this mess up the schema?

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    I believe ScopeOfWork is Multiline text which has NewLine and other special char that not parsing properly.

     

    • Can you Hardcord the value from PowerApps and sent it to Flow to test the flow piece working or not.?
    • Is the Collection is an array from PowerApps to flow?

     

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Medoomi 

     

    Can you try substituting the values and see data are passing through like

    Substitute(DataCardValue90.Text,Char(10),"<br/>")

     

  • Verified answer
    Medoomi Profile Picture
    523 on at

    Hi @StalinPonnusamy 

    Thanks again for your reply. I should have checked before, but new lines apparently are parsed correctly (I can see them in the output in Flow). They are carried as /n...

    Seeing as I was writing html, I simply introduced style="white-space: pre-line" to the paragraph, and the /n marks are read correctly.

    Thank you so much for trouble-shooting!

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard