Help with Studio

Hi, i’m learning UitPath Studio, and in the course “Building the WorkFlow-Part 1” says that i have to use this coman “.Count”

But in my Studio app, it doesn’t appear . What can i do to count emails?

Hi @oswaldo.francoro

When you use Get Outlook Mail Messages to retrieve the emails the output of the variable is of DataType List(MailMessages). You can use that variable in message Box to print the count of emails by below way:

MailMessages.Count

Regards

And what about if i try with Gmail?

Or is it only work with Outlook?

Thx

@oswaldo.francoro

It is same for Gmail too.

Regards

@oswaldo.francoro

Looks like courseemails is of type mailmessage and not list of mailmessage…can you please check the same…list is where the count works

Cheers

Hi @oswaldo.francoro

Could you confirm that which activity you are using to retrieve the mails from the Gmail. Weather it is Get IMAP Mail messages, Get mail messages and Get outlook mail messages, whatever it may be the result of this activities is in List of Mail messages or Array of Mail messages datatypes.

You can check the count for both of the datatypes.

Check the below image for better understanding,

Hope it helps!!

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