Hi,
I have a piece of text that I'm capturing from an email which looks like the following:
Order Number: A123
Details: This is an alert from system 1
Issues:
Issue 1 is A
Issue 2 is B
Issue 3 is C
Order Number: B123
Details: This is an alert from System 2
Issues:
Issue 1 is 1
Issue 2 is 2
End
I've got an array which has the order number it in and then I'm using the For Each Element in Collection
This then has a Extract Text by Pattern where its setup to start with the Array Variable, ie the order number, and then use the following pattern as the end looking for "Issues:"
So I basically get the result:
Details: This is an alert from system 1
This works great the first item in the array, but when it goes around the loop again it find the next order number so B123 fine, however when it searches for the end text I'm guessing it finds the first Issues: and seems to therefore not bring back any data, I assumed it would carry forward down the email from the Order ID but I don't think it is, I had a look at the Extract Text from Text but you cant use a variable as the begin location as its looking for a number and I want to use a text variable.
Am I missing something obvious here?
Thanks in advance :)