Hy people
I have specific problem., I have a flow that triggers when new text file is created in one drive
that text file contains messages divided with dashes
eg.:
text line something
new text line
PSM
AB1254
some text
etc
-------------------------------
text line something
new text line
PSM
SU67676
some text
etc
------------------------------
text line something
new text line
PSM
LM6432
some text
etc
------------------------------
dashes are always separator
I want that flow send each whole message beetween the dashes as separate email,
with subject line under PSM line eg LM6432 for last msg
but this text file sometimes repeat and I don't know how to send only messages that is not sent before.
I hope that someone can help me with this.
tnx
To get started, take a look at the split() expression - you'll split on the dashes and, in a different split, on PSM.
Give that a try and ask questions here if you get stuck.
tnx for answer
but I am stacked with extracting each part of text between lines as new email
I get whole body as email.
with split function it only remove the lines.
or I get only one message first one
I use this:
last(split(first(split(outputs('Novi_red'),'-------------------------------------------------------------------------------')),'---------------------------------------------------------'
and I can get only first message how to get others one by one?
can you provide more help please