web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 8A7CDO2PLVJkU0lbxsKvZ5
Power Automate - Building Flows
Answered

how to create flow of add data in row in excel sheet using compose action , In compose action i have used array of string like ("my name is akash. i am from jammu"), i want only name and place added in row from this line used in compose .

Like (0) ShareShare
ReportReport
Posted on 6 Oct 2021 06:53:28 by 57
  • Verified answer
    VJR Profile Picture
    7,635 on 06 Oct 2021 at 12:17:30
    Re: how to create flow of add data in row in excel sheet using compose action , In compose action i have used array of string like ("my name is akash. i am from jammu"), i want only name and place added in row from this line used in compose .

    The entire flow at a glance looks as below

     

    VJR_0-1633521935940.png

     

     

     

    Expression in Compose 1 is 

    replace(replace(item(),'My name is ',''),'I am from ','')
     

    VJR_1-1633521998248.png

     

    Expression in Compose 2 is

    split(outputs('Compose_1'),'.')

     

    VJR_2-1633522067998.png

     

     

    There are 2 Expressions in Compose 3

     

    trim(outputs('Compose_2')[0])
    trim(outputs('Compose_2')[1])

     

    VJR_3-1633522178526.png

     

     

    Output after running the process

     

    Loop Iteration 1 shows both Name and Place:

     

    VJR_4-1633522317321.png

     

     

     

    Loop Iteration 2:

    VJR_5-1633522387078.png

     

     

    I have just printed the Name and Place using a Compose statement.

    I have used a space in between the above Trim expressions, therefore there is a space in the output above in yellow. You are anyways not going to print it that way. Refer below.

     

    After the above steps you need to write to the excel.

    The Excel part should come within the loop.

     

    To write the Name use: trim(outputs('Compose_2')[0])

    To write the Place use:  trim(outputs('Compose_2')[1])
     
    You will find the ways to write to Excel in this forum itself.
     
    Good luck!
     
     
    PS: you had marked a different post as a solution.
    This is the post that should be marked as a solution so that users of the forum directly jump to this post.
  • Akashdeep Profile Picture
    57 on 06 Oct 2021 at 11:47:54
    Re: how to create flow of add data in row in excel sheet using compose action , In compose action i have used array of string like ("my name is akash. i am from jammu"), i want only name and place added in row from this line used in compose .

    yes i am looking for solution and it contains two strings .

  • VJR Profile Picture
    7,635 on 06 Oct 2021 at 11:23:49
    Re: how to create flow of add data in row in excel sheet using compose action , In compose action i have used array of string like ("my name is akash. i am from jammu"), i want only name and place added in row from this line used in compose .

    Hello @Akashdeep 

    Are you still looking for a solution on the posted array Or have you figured it out?

     

    If not then please provide a response: 

    Will this array always contain two strings as shown in your example?

  • Akashdeep Profile Picture
    57 on 06 Oct 2021 at 10:28:13
    Re: how to create flow of add data in row in excel sheet using compose action , In compose action i have used array of string like ("my name is akash. i am from jammu"), i want only name and place added in row from this line used in compose .

    it is an array 

    Akashdeep_0-1633516084131.png

     

  • Verified answer
    VJR Profile Picture
    7,635 on 06 Oct 2021 at 10:07:18
    Re: how to create flow of add data in row in excel sheet using compose action , In compose action i have used array of string like ("my name is akash. i am from jammu"), i want only name and place added in row from this line used in compose .

    Hello @Akashdeep 

     

    Can you reconfirm that the first brace is a circular brace "(" whereas the ending one is a curly brace "}".

    This needs to be clear whether it is an array or a string or json so that readymade built-in functions and actions can be used.

     

    Also will there be always two examples like the one you showed?

  • Akashdeep Profile Picture
    57 on 06 Oct 2021 at 08:35:26
    Re: how to create flow of add data in row in excel sheet using compose action , In compose action i have used array of string like ("my name is akash. i am from jammu"), i want only name and place added in row from this line used in compose .

    Akashdeep_0-1633509199347.png

    i am passing this from variable and i want only name and place from this variable in compose and that names and places added into excel 

     

  • VJR Profile Picture
    7,635 on 06 Oct 2021 at 07:49:35
    Re: how to create flow of add data in row in excel sheet using compose action , In compose action i have used array of string like ("my name is akash. i am from jammu"), i want only name and place added in row from this line used in compose .

    Hi @Akashdeep 

     

    • Could you please share what is the exact output from the compose. Is it a string or an array, json, etc?

             The text content of your output would help.

     

    • What are the dynamic content returned from the Output of Compose?

     

    • Also is this format always going to be fixed?

             my name is <Name>. i am from <Place>

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete