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 / How to convert text va...
Power Automate
Answered

How to convert text value into datatable

(0) ShareShare
ReportReport
Posted on by 52

Hi, plz refer to attached screenshot.

Need to convert this text value into datatable 

IMG_20240506_174210.jpg
I have the same question (0)
  • eetuRobo Profile Picture
    4,522 Super User 2026 Season 1 on at

    Use Split text and insert that lint into datatable:

    eetuRobo_0-1714998188175.png

    eetuRobo_1-1714998202687.png

     


    Code:

    Variables.CreateNewDatatable InputTable: { ^['Column1', 'Column2'], [$'''''', $''''''] } DataTable=> DataTable3
    SET NewVar3 TO $'''LYNN, ALANNA'''
    Text.SplitText.SplitWithDelimiter Text: NewVar3 CustomDelimiter: $''',''' IsRegEx: False Result=> TextList
    Variables.AddRowToDataTable.AppendRowToDataTable DataTable: DataTable3 RowToAdd: [TextList[0], TextList[1]]
  • Deenuji_Loganathan_ Profile Picture
    6,250 Moderator on at

    @aggneha9821 

     

    Try the below code:

    Deenuji_0-1714998319210.png

     

    Output:

    Deenuji_1-1714998351311.png

    Code:

    SET Datatable TO {['LYNN', 'ALANNA'] } 

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • VishnuReddy1997 Profile Picture
    2,656 Super User 2026 Season 1 on at

    Hi @aggneha9821 ,

     

    As per my understanding i have created a flow.

    Please find the solution.

    VishnuReddy1997_0-1714998477049.png

     

    Code:

     

    SET Memeber TO $'''LYNN,ALANNA'''
    Text.SplitText.SplitWithDelimiter Text: Memeber CustomDelimiter: $''',''' IsRegEx: False Result=> Member_As_TextList
    Variables.CreateNewDatatable InputTable: { ^['Column1'], [$''''''], [$''''''], [$''''''], [$''''''], [$''''''], [$''''''], [$''''''], [$''''''], [$''''''] } DataTable=> Memeber_As_DataTable
    SET RowValue TO 0
    LOOP FOREACH CurrentItem IN Member_As_TextList
     Variables.ModifyDataTableItem DataTable: Memeber_As_DataTable ColumnNameOrIndex: 0 RowIndex: RowValue Value: CurrentItem
     Variables.IncreaseVariable Value: RowValue IncrementValue: 1
    END

     

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

     

  • aggneha9821 Profile Picture
    52 on at

    @Deenuji @eetuRobo I need this text value in a one cell only ....I don't want to split it

  • Verified answer
    eetuRobo Profile Picture
    4,522 Super User 2026 Season 1 on at

    Then just use Insert row into data table. It depends on your datatable how the insert works. How many columns you have? Can the other columns just be empty or do you want some value into them?

    eetuRobo_0-1714999153217.png

     

  • Verified answer
    VishnuReddy1997 Profile Picture
    2,656 Super User 2026 Season 1 on at

    Hi @aggneha9821 ,

     

    Please find the attached solution.

     

    VishnuReddy1997_0-1714999297999.png

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

     

  • Deenuji_Loganathan_ Profile Picture
    6,250 Moderator on at

    @aggneha9821 

     

    Simple one:

    This method won't come up with empty row at first row

    Deenuji_0-1714999438511.png

     

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Verified answer
    Deenuji_Loganathan_ Profile Picture
    6,250 Moderator on at

    @aggneha9821 

     

    The below two methods come up with first row as empty row so you have to delete the index 0 using delete row from datatable action.

     

     

    Method 2:

    Deenuji_0-1715000006727.png

    Code:

     

    SET Member TO $'''LYNN, ALANNA'''
    SET Datatable TO {[''] }
    SET DataTable TO DataTable + [Member]
    Variables.DeleteRowFromDataTable DataTable: DataTable RowIndex: 0

     

     

    Method3:

    Deenuji_2-1715000153995.png

    Code:

     

    SET Member TO $'''LYNN, ALANNA'''
    Variables.CreateNewDatatable InputTable: { ^['Column1'], [$''''''] } DataTable=> DataTable
    SET DataTable TO DataTable + [Member]
    Variables.DeleteRowFromDataTable DataTable: DataTable RowIndex: 0

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 957

#2
Valantis Profile Picture

Valantis 847

#3
Haque Profile Picture

Haque 609

Last 30 days Overall leaderboard