Index was outside the bounds of array

when I’m assigning this,it gives the error
any suggestion??
thanks

Use this to extract the info

   Array = Result.Split({Environment.NewLine},StringSplitOptions.RemoveEmptyEntries)

this will give you ClientID on (0), ClientName on (1) and Client Country on (2) index of array

Thanks,
Prankur

1 Like

still not working,same error all the time.

Hi @Shobhit_sachan,

Can you print in log message and share the result

string.join(",",clientID)

Regards,
Arivu

To test have a for each for array and print on what Index you are having ClientID, ClientName and Country

I guess the value is there in the array just Index is different

See working sample

Main.xaml (7.2 KB)

Open ACME workitems WI5 in IE and run this you will get this

image

After this you can use

ClientID = ClientID.Replace(“Client ID: “,””); and so on

Thanks,
Prankur

my whole workflow is in CHROME.

No problem just update the selector for Get text, re-indicate on chrome and it will work