I have a Text file in the below format. I need to retrieve the USD which is below the Keyword Currency.
I used the method strText.Split({“Currency”},System.StringSplitOptions.RemoveEmptyEntries)(1).Split(System.Environment.Newline(0))(0).Trim am getting only blank information.
If you want to get multiple results for each USD, use this in a For Each loop: inputString.Split({“Currency”},System.StringSplitOptions.RemoveEmptyEntries)(0).Split({System.Environment.Newline},StringSplitOptions.RemoveEmptyEntries)
Output:
To access single elements, add an array index at the end: inputString.Split({“Currency”},System.StringSplitOptions.RemoveEmptyEntries)(0).Split({System.Environment.Newline},StringSplitOptions.RemoveEmptyEntries)(0)
Below is the information which i was working in the text file, can you check you can get the result.
?age. I •Dated: 30-07-2618 P//C50 / 36/6 44 fQ-
•O
SCHEDULE FOR OUTWARD: DOCUY. COLLECTION
Please: always.- quote
Mail to
EM
777 No : 90040BCS000601-
collection, We . enclose the following for
Drss Currency
USD
USD
USD
REFERENCE .
For Banda
Autatory
Of
•O
Yes, in some cases, workflows built with beta versions may not work with previous or future stable versions. Please make sure you test workflows with stable versions too, before pushing to production. We have migration checks in place but some cases might not be covered. Good news is that 18.3 will soon be pushed to stable as well.