Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

get data using get rows in sql server power automate

(0) ShareShare
ReportReport
Posted on by 42

Hello,
I want to get rows (sql server) action to get data in power automate. Output column data is 
"X_Intake_Forms": "Floor: 09\n\nUnit: 04\n\nBuilding Name (Optional): Fernwood Towers"

hninyuaung_0-1698940759998.png


I want to get data from this column like 
Floor is 09
Unit is 04 

Building name is Fernwood Towers
How can I do it?

Thanks,

  • hninyuaung Profile Picture
    42 on at
    Re: get data using get rows in sql server power automate

    Hello Yueyun Zhang,
    It is working.
    Thanks

  • Verified answer
    v-yueyun-msft Profile Picture
    on at
    Re: get data using get rows in sql server power automate

    Hi , @hninyuaung 

    According to your description, you want to convert the "Floor: 09\n\nUnit: 04\n\nBuilding Name (Optional): Fernwood Towers" to :

    Floor is 09
    Unit is 04 

    Building name is Fernwood Towers

     

    Here are the steps you can refer to :
    (1)This is my test json to test by creating in the compose action:

    json('{
    "body":{},
    "value":[{
    "X_Intake_Forms" : "Floor: 09\n\nUnit: 04\n\nBuilding Name (Optional): Fernwood Towers"
    }]
    }
    ')

    vyueyunmsft_0-1698975971747.png

    (2)We can use this code to split this Text by '\n\n':

    vyueyunmsft_1-1698976070360.png

    split( outputs('Compose')?['value']?[0]?['X_Intake_Forms'], decodeUriComponent('%0A%0A') )

     

    vyueyunmsft_2-1698976090136.png

    (3)Then we can use the "Select" action to convert this array to the new array we want to like this:

    vyueyunmsft_3-1698976212199.png

    concat(split(item(),':')[0],' is',split(item(),':')[1])

     

    The result is as follows:

    vyueyunmsft_4-1698976232409.png

     

     

    If I misunderstand what you mean, you can describe your needs and your expected outcomes in detail so that we can better help you.


    Best Regards,

    Yueyun Zhang

     

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,552 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow