Send the document that contains a specific word

Friends I have another question.

I have the following condition. IF IT CONTAINS THE WORD (IEEE)
that same PDF must be selected. and be sent by email.

It is worth mentioning that I have a folder with multiple PDFs.
the robot must search for the word (IEEE) among all of them and select the one that contains it.

Can someone tell me if I’m missing some activity or if it’s in the IF chain.

It looks fine. Are you having some issue? Do not forget to attach the file (I can not see if you are already doing it)

attach this variable the Caap(i). which is the same Output variable from the ReadPdf activity.

Hi @Ana_Patricia_Garcia,

1-Use all .pdf files.

Directory.GetFiles("yourFilePath","*.pdf")

2-Create your condition.

item.ToString.Contains("yourValue")

3-The matching item will already give you the filepath. You can use it in the attachment.

Regards,
MY

Thank you very much for your contribution. :hugs:

1 Like

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