Need some help wrt Demo for reading attachment from outlook

I am trying to replicate the demo given for learning purpose , but i am stuck at this place . In doc they say **row(“Name”).ToString.split(“”c)(0) , any help on this

Also, how should i focus on learning RPA , i am not developer and do not have programing knowledge , but if i want to explore do i need to learn programing … please advice

Hi @lakshminarasimhan.santhan It should be row(“Name”).ToString.split(“ ”c)(0) (space as delimiter) but in the code you have mentioned as row(“Name”).ToString.split(“”c)[0]. The exp should be

CurrentRow("Name").ToString.Split(" "c)(0)

Register to https://academy.uipath.com/ and go through developer courses. This would helpful to enhance your skills and to understand this you doesn’t need any coding knowledge

Hope this helps :slightly_smiling_face:

Hi @lakshminarasimhan.santhan ,

Try using the below :

CurrentRow["Name"].ToString().Split(" ")[0];

Here, taking into consideration space as the delimiter.

@lakshminarasimhan.santhan ,
For this part, we encourage you to take on courses that are available in academy :

This is What i see after updating

Thank you , will explore it

Thank you for extending your help , i did the same still stuck

@lakshminarasimhan.santhan Can you copy the below exp

CurrentRow("Name").ToString.Split(" "c)(0)

Note that the Project is in c#, We would need to adhere to the C# Syntax

Idid tried it , but it is giving error at c

@lakshminarasimhan.santhan ,

Could you check with the updated expression below :

CurrentRow["Name"].ToString().Split(" ".ToCharArray())[0];

@lakshminarasimhan.santhan

Please try this

currentrow["Name"].ToString().Split(new char[] {' '},StringSplitOptions.None)[0]

image

cheers

It did worked with no error , Wow
what we did

Thank you Anil.

It did worked

what we did

1 Like

@lakshminarasimhan.santhan

I see that you are using c# and syntax for it is little different…so matched the syntax to the required format

Happy Automation

Cheers

Thank you …

1 Like

Thank you All … for prompt reply and guiding me …

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.