i am very new in UiPath.
objective: to read table in the email body sent by specific sender.
in for loop, if sender sent email > then copy the text(table) in her email.
i already set my for loop type argument as: system.net.mail.mailmessage
but still .from or subject still not appearing. what am i missing?
Hi
Welcome to uipath community
It looks good actually
Fine
Let’s do one thing remove that for each activity and place a fresh for each activity and pass the output variable of get outlook mail activity and change the type argument as SYSTEM.NET.MAIL.MAILMESSAGE and inside the if condition mention like item.From or item.Subject methods
Or
To be very simple we can use this condition in the get outlook mail activity itself with a property called FILTER where we can mention likel this “[From] = ‘your username’ “
Fantastic
Then we have two options here
If we have a username brimail with mail I’d like brimailid@gmail.com
Either we can use this expression like inside the for each activity item.From.ToString.Equals(“brimail”)
Where item is the variable from for each activity and FROM is a method mail.mailmessage class
And from method can take only the mailid username and not the mail id
Or
We can mention likewise item.Senderemailaddress.ToString.Equals(“brimailid@gmail.com”)
Where senderemailaddress is a method that takes mailid and not the username of the
Based on the output Boolean that comes out of any of these two options it will go to THEN or ELSE part
Of if condition