Get only certain amount of lines in a string


I am currently using a process that gets the text body of mail messages.

These certain mail messages contain certain information that I need to get and put each line to a string.

Lets say I have a message that contains 10 lines.
How do I assign to a string line 6, 7, 8 and 9 all individually?

@dvn, I would suggest of use List to store values. Once you have list ready you can access any elements within. Hope it make sense.

Let me know if you need more detail.


Yes I will need a bit more detail. like what activities to use, what expressions

@dvn, Please try following algorithm:
=> Use Split method to get available lines in message.
=> Use For Each loop to populate List. You can use Add to Collection activity for that matter.
=> Access element as needed.