04-01-23 11:36 AM
04-01-23 01:03 PM
Hi!
Maybe you can provide a screenshot of the value inside the data item you're talking about?
The reason for my question is to know if the value is a one line string that holds all the value which will looks something like "Name : Nirbhay MishraProfile : Intelligent Automation" or it will be separated by a line.
If by lines, you can easily use the "Split Text" action from Utility - Strings, this will give you a collection with each value in a row for easy manipulation.
If it's a one line string, you can use the below expression in a calculation stage. Assuming your input is saved in a Data Item called "Data1" and there is a space before and after the colons as the example you provided. This should be giving you an output of the name as it lies between "Name" and "Profile" words. I added a screenshot and the exact syntax for easier copying.
Mid([Data1], InStr(Upper([Data1]), "NAME")+7, InStr(Upper([Data1]), "PROFILE")-(InStr(Upper([Data1]), "NAME"))-7)
You can modify the words and the numbers to get different values.
04-01-23 02:14 PM
Name\s:\s(?<Name>.*)[\r\n]+Profile\s:\s(?<Profile>.*)[\r\n]+Age\s:\s(?<Age>.*)[\r\n]+
The action would look like the following:
04-01-23 03:47 PM
04-01-23 04:35 PM
09-01-23 01:10 PM
09-01-23 01:19 PM
09-01-23 01:32 PM
Hi @NirbhayMishra
You can use the "Split Text" action from "Utility - Strings" Object. If you don't have the object, you can get it from here.
It should look like this
And your output will be like in a collection like this
Alternatively, you can use calculation stage that will look like this,
Mid([Data1], InStr(Upper([Data1]), "CONTACT PERSON")+16, InStr(Upper([Data1]), "TELEPHONE")-(InStr(Upper([Data1]), "CONTACT PERSON"))-16)
This exact calculation stage will give you the exact name. The way it works that it gets you everything that is between the words "CONTACT PERSON" and "TELEPHONE".
You can apply the same logic by changing the words you're searching for and as well the number of digits which is 16 in the previous example. You might want to reduce it or increase it.
Hope that helps.
09-01-23 02:00 PM
Contact\sperson:\s(?<ContactPerson>.*)[\r\n]+Telephone\snumber:\s(?<TelephoneNumber>.*)[\r\n]+Number\sof\scartons:\s(?<NumberOfCartons>.*)[\r\n]+