How to get client id,client name and client country from the client security hash assignment

Hi Sreekanth,

Can you please explain me , how you made these statements, so that I can do it myself for Client Name and Country.

With Regards,

Thanks Sreekanth,

For Posting an example, I have found it myself for Name and Country.

out_clientname=temp.Substring(temp.IndexOf(“Client Name”)+12,tempid-12).Trim.ToString

out_country=temp.Substring(temp.IndexOf(“Client Country”)+15,tempid-15).Trim.ToString

With Regards,

Hi Prabu, could you please specify that what is “tempid”? Thx!

Hi ilemon,

For performing String Manipulation, I have created a temporary int32 variable “tempid” and “temp” is the output of the GetText Activity.And assign it like below:

tempid=temp.IndexOf(“Client Name”)-temp.IndexOf(“Client ID”)

With Regards,

1 Like

Thank you Prabu!~

I have resolve the problem by the following method.Pls refer to.
str_ClientInfor = clientInfor.ToString
parts = str_ClientInfor.Split({":",“Client”}, StringSplitOptions.RemoveEmptyEntries)

clientInfor is generic
str_ClientInfor is String
parts is a string array

this is the result.
Parts(Index) Value
0 ID
1 RU90268
2 Name
3 Veda Blaylock
4 Country
5 Germany


Could you please help me on this one…i am stuck here

Hi, are you still looking for help or is it resolved?

@Aishwarya28 - thank you so much for asking, I am still looking into it…

Hi @Gaurar,

I have used split function as I find it very easy to understand.

Use get text to captue whole client detail section (which includes client id,name,country)

And then split it to get desired text.

Do let me know if you are familiar with this functionality, else I will write the code here.

1 Like

I tried a stupid and simple way as it was fixed values to use as per below flow…

First Split the string and later get only required values from Array (result of slipt)

[StringArray] = [string].Split
[required data] = StringArrayAs(2)+"-"+StringArrayAs(6)+" “+StringArrayAs(7)+”-"+StringArrayAs(11)

1 Like

If you write the code that would be of great help!

[StringArray] = [string].Split
[required data] = StringArrayAs(2)+"-"+StringArrayAs(6)+" “+StringArrayAs(7)+”-"+StringArrayAs(11)

The response given above by @megharajky is perfectly fine. Please try this.


Here, [string] is the output of gettext activity.
[stringarray] is a variable of datatype=array of string that you need to create.
and then use ‘write line’ to see different values of stringarray(#) to see what value is at which index, and select the required data.

1 Like


I took Div as the output of get text activity.I declared Div of type String.When I perform String operations i am getting below error.

Can you please help me with this.


What is the error can you over on the icon and show?

Thank you @Aishwarya28


This is the error am getting at the output of get text activity.

Actually String is not the output type for Get Text, it gives a GenericValue

Change your variable type and the error should go away :slight_smile:

When I change the variable type to Generic value,am getting below error at string manipulation