cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate III
Advocate III

Extract row number n from text

I used HTML to text conversion and then split function via compose.

 

Now I have 45 lines/rows.

 

I need to extract line 4 from the output.

 

How can I do this?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @GrischkePro,

 

According to your description, I made a simple test on my side. To get line 4 from the output, I used functions skip and take in the Compose action:

take(skip(outputs('Compose'),3),1)

 

It returned the line 4 properly.

1.PNG

2.PNG

 

More details about the WDL function, please check it at here:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#s...

 

 

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support
Community Support

Hi @GrischkePro,

 

According to your description, I made a simple test on my side. To get line 4 from the output, I used functions skip and take in the Compose action:

take(skip(outputs('Compose'),3),1)

 

It returned the line 4 properly.

1.PNG

2.PNG

 

More details about the WDL function, please check it at here:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#s...

 

 

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thanks @v-yamao-msft

 

Before I saw your solution, I came up with mine, which also works. However, yours is much cleaner so I will definitely try it, but can you please show me your first split line?

 

 1.png

 

split(variables('emailTextVar'),outputs('breakCharacter'))

2.png

It's dirty, but it works Smiley Very Happy

 

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (18,159)