What is the proper way to use the '\r' return character in a Power Automate Flow?

xarzu

New Member
Joined
Apr 1, 2013
Messages
15
When working with the functionality of reading data from a cvs file into a dataflow, it is required, I believe, to use a schema. It seems to me that this schema has to be designed to accommodate the end of a line in the data. What is the proper way to do this?

First of all, It seems that all schemas start like this:

JSON:
{
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "Title": {
                "type": [
                    "string",
                    "null"
                ]
            },

After this, the schema lists the individual columns. Let's say that in our case, we only have three columns, "Name", "Profession" and "Profession-2". In order to recognize that we have reached the end of the line as we read data, the \r character should be used. I assume this is how it should be done:



JSON:
"Name": {
               "type": [
                    "string",
                    "null"
                ]
            },
            "Profession": {
                "type": [
                    "string",
                    "null"
                ]
            },
            "Profession-2\r": {
                "type": [
                    "string",
                    "null"
                ]
            }



Finally, there is the "required" block.



JSON:
"required": [
           "Name",
            "Profession",
            "Profession-2\r",
        ]

What are your thoughts? Did I get this right? Is there some sort of documented explanations somewhere outlining the proper use of the /r character?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,224,862
Messages
6,181,464
Members
453,044
Latest member
rgbenson1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top