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 Automate / get data using get row...
Power Automate
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,

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    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

     

     

     

  • hninyuaung Profile Picture
    42 on at

    Hello Yueyun Zhang,
    It is working.
    Thanks

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 386

#2
Valantis Profile Picture

Valantis 342

#3
Haque Profile Picture

Haque 336

Last 30 days Overall leaderboard