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.

![]()
can anyone suggest me solution please.
Thanks in advance
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.

![]()
can anyone suggest me solution please.
Thanks in advance
Where are these attachments? Which application which type of interaction you are doing from UiPath?
Share more details.
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.