Getting Download Link from Email Body
Posted: Mon Oct 26, 2015 3:41 pm
Greetings,
I am trying to pluck a download link from email bodies. Using the HTTP request configurator gets me almost there. The flow works as expected if I explicitly use the link. That is to say, it gets the PDF files I need with no issues, so that mechanic is working fine. However, I need to get a different link from each email. I can use defined variables something like:
https://www.shswelcomecard.com/ShowPDF.asp?order=[Email.Body:After=".asp?order=",Before="&"]&imp=1&accesscode=[Email.Body:After="accesscode="]
The problem is that I am so far unable to define where the link ends in the email. Placing regex searches in the Switch variable generates some issues. I've tried counting the access code characters as well. The last characters are the end of an HTML tag something like:
<td width="500" colspan="2"><a href="https://www.shswelcomecard.com/ShowPDF. ... 720">Click for Combined Imposition File</a><br>
Can this be done more simply with Switch out of the box or will I have to write some scripting to discover this link address?
Thank you.
I am trying to pluck a download link from email bodies. Using the HTTP request configurator gets me almost there. The flow works as expected if I explicitly use the link. That is to say, it gets the PDF files I need with no issues, so that mechanic is working fine. However, I need to get a different link from each email. I can use defined variables something like:
https://www.shswelcomecard.com/ShowPDF.asp?order=[Email.Body:After=".asp?order=",Before="&"]&imp=1&accesscode=[Email.Body:After="accesscode="]
The problem is that I am so far unable to define where the link ends in the email. Placing regex searches in the Switch variable generates some issues. I've tried counting the access code characters as well. The last characters are the end of an HTML tag something like:
<td width="500" colspan="2"><a href="https://www.shswelcomecard.com/ShowPDF. ... 720">Click for Combined Imposition File</a><br>
Can this be done more simply with Switch out of the box or will I have to write some scripting to discover this link address?
Thank you.