Outlook mail activity for current date condition

outlook subject get date.xaml (8.9 KB) can any help on this?currecnt%20date where current date must be on that unfilled output which i have added the screenshot can anyone correct me?
@HareeshMR @Palaniyappan

1 Like


Declare a variable as CurrentDate
Just use regex expression whether the string contains a valid date. If value exists, assign that value to the variable declared , if not found, assign the value as today.ToShortDateString

sorry, I’m not good at regex expressions. May be @Palaniyappan will help you

1 Like

Hi @priyankavivek

Use regex as “/ \d{2}-\d{2}-\d{2}”


1 Like

you mean like why the date didn’t appear along the write line
i hope the while checking with the condition for subject with a mail id
and if it satisfies it will go to THEN part where we are trying to split the subject and thats how we are getting the value
–either we need to check whether the subject of the mail which came in that iteration has a date in it so that it will appear on output panel when a split method is applied
–or we need to check whether the subject has that mail id or not and if yes then we can validate the above point or if not it should go for ELSE part where we will be getting the date for sure

so for all these we need to use a write line in both THEN and ELSE part mentioning
the subject, so that we will know whether it has the date and the mail id in it or not
–kindly add a write line activity in both the sides and try to display the subject of the mail
then we can very easily validate the issue
and would be almost done

Kindly correct me if i m wrong
Cheers @priyankavivek

1 Like

thankyou somuch for your reply.

1 Like

No worries
Cheers @priyankavivek

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