Hi @Simran2,
I think in if condition you provide email.subject.toString.toLower.contains(“invoice”) will be more precise to get emails which contain invoice in their subjects.
Thanks & Regards,
Shubham Dutta
still not working
in 2nd if else condition
its not throwing an error for different subject
please follow these steps.
1-get unread mail messages list from mail.
2-loop over mail message list.
3-put condition inside loop.
4- Condition Item.Subject.ToString.Contains(“Invoice”)
5- if the condition is true put all the process in your then block.
6- if mail not contains “Invoice” then put assign activity in else block and in assign activity put bool variable.
7- use bool variable outside if where you want to throw exception
Hi @Simran2,
I think in GetOutlookMailMessage, put condition “@SQL=(urn:schemas:httpmail:subject LIKE ‘%Invoice%’)”.
This will fetch all unread mails where subject line contains Invoice keyword and then in if condition you can check if mailMessage count>0, proceed with steps else throw exception.
This way we can avoid loop as well.
Thanks & Regards,
Disha Jain
@Simran2 ,
As per your Workflow out of 10 Emails even if 1 Email contains required Subject it will not go to else part and throw the exception.
Out of N Emails even if 1 contains invalid and if u need to throw exception in this case you need to reverse the condition in 1st If - Else block.
Assign Boolean = True in else block (which means Invalid Email found)
In 2nd If - Else block if your Boolean is true throw exception.
This way it will throw exception even if 1 Invalid found.
But not sure what is your need here, this suggestion is based on your workflow.
Hope it helps!
Regards,
Rohith
still not working
its saying new user cannot share file