17-02-22 09:16 PM
I'm trying to extract a confirmation text from confirming window, and I tried many ways but the only text I get is "Order Confirmed" not the body text
so how to get the body and then the number?
Thanks in Advance
Answered! Go to Answer.
17-02-22 09:49 PM
Trim(Mid([Order Text], InStr([Order Text], ":")+1 , Len([Order Text]) - InStr([Order Text], ":")))
InStr([Order Text], ":")+1
: This part of the expression returns us the index of one position greater that the colon character in the text ":". We are adding one to the index so that the next expression where we are going to use Mid Operator can start extracting value after colon.Len([Order Text]) - InStr([Order Text], ":")
: This returns us the length of the characters to be extracted. Here I am taking the total length of my text and subtracting the length of text before and including the colon character as we need to extract the words after that colon.Mid([Order Text], InStr([Order Text], ":")+1 , Len([Order Text]) - InStr([Order Text], ":")):
This complete expression that uses mid will now be able to take the above two formulas and return me the entire text starting after colon.17-02-22 09:49 PM
Trim(Mid([Order Text], InStr([Order Text], ":")+1 , Len([Order Text]) - InStr([Order Text], ":")))
InStr([Order Text], ":")+1
: This part of the expression returns us the index of one position greater that the colon character in the text ":". We are adding one to the index so that the next expression where we are going to use Mid Operator can start extracting value after colon.Len([Order Text]) - InStr([Order Text], ":")
: This returns us the length of the characters to be extracted. Here I am taking the total length of my text and subtracting the length of text before and including the colon character as we need to extract the words after that colon.Mid([Order Text], InStr([Order Text], ":")+1 , Len([Order Text]) - InStr([Order Text], ":")):
This complete expression that uses mid will now be able to take the above two formulas and return me the entire text starting after colon.18-02-22 09:56 AM
Replace([Order Text], "Please make a note of our reference number: ", "")
21-02-22 10:38 PM