How to download the attachments

Hi,

I want to download the attachments if there is 1 or 2 mentioned in the below image and if there is Zero attachments, I need to run the different flow.

image

image

can anyone suggest me solution please.

Thanks in advance

@raju_alakuntla,

Where are these attachments? Which application which type of interaction you are doing from UiPath?

Share more details.

Hi @raju_alakuntla

If it is any web application or desktop application you are automating then use the UI Activities.

→ Use the Get Text activity and indicate the Attachments(2) Ui then store the value in a varaible called AttachmentsCount.
→ Then take an Assign activity and give the below expression to get the value between braces.

- Assign -> AttachmentsCount = System.Text.RegularExpressions.Regex.Match(AttachmentsCount.toString, "(?<=\()\d+(?=\))").Value

→ Then take an If condition and check the value if it equals 0 then execute then block, else block

- Condition -> Cint(AttachmentsCount).equals(0)

Hope it helps!!

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