Email automation with studio exercise

I keep having A debug issue on here ,assigning variable to store senders email address and attachment, help

@Ikem_Samuel

Inside the For Each loop, use Assign activities to store the sender’s email address and attachments.

SenderEmail = item.Sender.Address
Attachments = item.Attachments

Make sure to replace Get Outlook Mail Messages OR Get IMAP Mail Messages

I am working on gmail not outlook ,And even following this method item is not declared

Hi @Ikem_Samuel,

Can you please tell me which UiPath activity are you utilizing to retrieve emails from a Gmail account?

NewEmailRecieved Gmail

You don’t have to assign them to separate variables. It’s extra work for no reason.

@Ikem_Samuel in that Expression Editor, clear it out and then type receivedEmail. - when you type the . a context menu will appear showing you all the properties of receivedEmail (datatype GmailMessage). From there, select the one you want.

1 Like

Did you copy/paste that expression?

Type it out new. It works fine for me. You can also try receivedEmail.SenderAddress

Also try going to the Imports tab and typing UiPath.GSuite.Models and then click it to import it.

image

This worked ,Thanks A bunch

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