How to use element exists and path exists activity’s at a time

How to use element exists and path exists in a same sequence one after one?

In my project iam replacing the text in the word doc and saving the file. If save as exists then it’s going to save the file with the employee name and if path already exists with the employee name I need to close that and move to the next employee.
When iam trying to check then iam getting even there is no file exists it’s directly closing and not saving the file .
Please find my screenshot and please help me how can I use both the activities without disturbing the workflow

Hi @Pavan_Kumar13

Try these steps-

  1. Use the “Element Exists” activity to check if the “Save As” dialog box is displayed.
  2. If the dialog box is displayed, use the “Type Into” activity to enter the employee name and then click the “Save” button.
  3. If the dialog box is not displayed, use the “Path Exists” activity to check if the file already exists with the employee name.
  4. If the file exists, use the “Close Application” activity to close the Word application and move on to the next employee.
  5. If the file does not exist, use the “Click” activity to save the file with the employee name.

Thanks,

Thank you so much for the reply

Can you please share me the workflow how to do that please.

Thank you.

@Pavan_Kumar13

After path exists please use a if condition with the output of path exists…and only when exists you need to close so keep close in then side…and if does not exists that is else side do save

Also generally for word data manipulation we need not use ui…we can use word related activities…UiPath.word.activities is the package to be installed

https://docs.uipath.com/activities/docs/about-the-word-activities-pack

Cheers

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