Add the type into to the end of the existing filename and how to specifically replace a word

Hi everyone!

I’m trying to use the activity “Type Into” to add a file name (fixed) in the end of the existing file title but this activity is just replacing all the file name… Do you know if it’s possible to use some function in the Expression Editor for achieve this?

Another question is how is possible to replace part of a name within a website in its field?

that is because by default when you click on that file name section, entire field is selected
so in the type into activity’s properties → Check the checkbox for click before typing.
If that doesn’t work the add a send hotkey activity and send the “End” key command. this will go to the last part of the field and then you can use the type into with the “Click before Typing” checkbox as checked

one way is → you can read the entire text first in a variable, replace the part you want to replace and then use type into for the entire text → for this while using Type into activity make sure to check the checkbox “Empty Field” in property panel

(post deleted by author)

“add a send hotkey activity and send the “End” key command. this will go to the last part of the field and then you can use the type into with the “Click before Typing” checkbox as checked”

Thanks Rahul! This worked partially, I did the following activities:

Click + Hotkey End + Type into (click before typing = false and empty field = None”)

How do I do this using the activities/actions?

Hi @cauan.silva ,

We assume you are having the default path value in the text field you are referring.

As suggested by @rahulsharma first use Get text activity in the UiPath to read the default value from the text field and store in a variable.

Now use string replace function to replace the desired path in the default path you extracted from the text field.

For a final path with the above replace method store in a final path string.

Now use type into activity and assign the final path as input string. And also make sure that you have to check the check box Empty filed one of the property of type into which is used to empty the default values under text fields. So it will deplete the default value before entering the final path so this time it will enter the correct path.

please follow the above steps and let us know if you stuck anywhere or you could share us screenshots so that we would guide you better. thanks.

Hi @kirankumar.mahanthi1 thank you so much for your help!
I made some attempts around here, but I wasn’t successful…

Follow the browser page example with the field that we erase some words, write “Credit memo” and keep others words (was that more or less what you were thinking?):

image

image

image

Follow some doubts about your explanation:

  • When I use the activity “Get text” to store in a variable, UiPath asks me to “keep in some place” for this case where we need to store (within the options he gives us)?

What do you recommend I use? Some activity and open the “expression editor” to use string.replace?

What do you recommend I use? Some activity?

Thanks!

  • When I use the activity “Get text” to store in a variable, UiPath asks me to “keep in some place” for this case where we need to store (within the options he gives us)?

yeah store in string variable.

What do you recommend I use? Some activity and open the “expression editor” to use string.replace ?

yeah in the expression editor use string replace function.

What do you recommend I use? Some activity?

we can use assign activity to assign variable values or expressions to another variable.

As I showed in the image, I would have to store the string and replace the initial sentences with “Credit Memo”. In the end we going to use the “Type into” activity and somehow bring the edited sentence.

Could you show how String Replace would be structured in the expression editor for this case?
Could you help me with those 2 steps that you indicated?

image

@kirankumar.mahanthi1

I just got what i was intending with The Activities (if you want later i can share) but it would be very important if you could show how it would be “String Replace” structured in the Expression Editor for this case.

Thank you so much!