how to retrieve the name of the attachment of email , attachment can be .msg .pdf .xls .xlsx format
retrieve the list of string as list of all the attachments of email ?
i dont need first attachment name with this : CType(mail.Attachments.FirstOrDefault,Attachment).Name
To get latest date, store all your dates into array variable(say var1), then use var1.Max
To get the attachments names, follow below steps:
a. Use for loop to go through each mail(store mailitem in a variable “mail”),
{
b. Now prepare a variable(counter = 0) and also list(List1) to store attachments names,
c. while counter < mail.Attachments.Count,
{
d. now you can get the attachment name using mail.Attachments.Item(counter).Name. This
gives output as string. You can store this to List1
e. Increase counter value by 1
}
}
how to use max function in uipath , i am getting multiple date as list (list1) list of datatype as system.
consider dates like { [15.11.2020], [26.11.2020], [18.11.2020], [31.11.2020] } of type system.text.regular.expressions.Matches
how to use max function for list of regular.expressions.matches datatype, i am getting multiple date as list (list1) list of datatype as system.
consider dates like { [25.07.2020], [26.08.2020], [26.08.2020], [26.09.2020] }
or may be something like
{ [05.06.2019], [18.09.2020], [26.04.2021], [31.12.2021] }
Assign: At least one object must implement IComparable.
or in other words
how to apply max function or max value from var of datatype System.Collections.Generic.IEnumerable<System.Text.RegularExpressions.match> ?
consider var1 like { [15.07.2020], [19.08.2020], [26.08.2020], [30.09.2020] }
similar way can i find the maximum element of the list ?
apply max function or max value from var of datatype System.Collections.Generic.IEnumerable<System.Text.RegularExpressions.match> ?
consider var1 like { [15.07.2020], [19.08.2020], [26.08.2020], [30.09.2020] }