Upload file dựa trên các kí tự giống nhau

(Restricted) Profoma_Invoice(FXCD)_CM8S2430052

(Restricted) Profoma_Invoice(HHGL)_CM8S2410756

(Restricted) Profoma_Invoice(HHGL)_CM8S2430045

(Restricted) Profoma_Invoice(HHTY CSD)_CM8S2420200R

(Restricted) Profoma_Invoice(HHZZ)_CM8S2430037

ASN CD 052,

ASN GL 045,

ASN GL 756,

ASN SD 00R,

ASN ZZ 037
Mọi người ơi , em hỏi chút ạ . Em đang cần sử dụng RPA để upload file tự động lên trên trang web và em sẽ cần up 2 file là file ASN và file hoá đơn . Ví dụ em sẽ up file ASN GL 045 và kèm với đó em sẽ up file invoice là (Restricted) Profoma_Invoice(HHGL)_CM8S2430045 . Thì 2 file này trùng nhau ở kí tự GL và 3 số cuối là 045 . Nhờ mọi người hỗ trợ đưa ra solution giúp em với chứ em cũng đang chưa biết phải làm như nào ạ =((

1 Like

@ngocnghia.nguyen

To find those files you can use

For each file in folder with filter as *GL*045*

Then inside loop currentfile.FullName will give the path of those files

Another ways is to use requiredfilelist = directory.GetFiles("FolderPath","*GL*045*").ToList

Cheers

1 Like

Thank you for your help . But I’m using studio X, how can I set up ? Besides, the excel file name will be changed daily so I just want to get according to the rule that the last 3 digits, k must be fixed as 045
Best regards

2 Likes

@ngocnghia.nguyen

All the above mentioned activities are available in studiox as well…

Try to search for …for each file in folder

If you want to go with second approach then set to variable and then use for each activity with list

Cheers

1 Like

I still don’t know how to set filter in for each file in folder activities