In reply to: Martin Meze (Freelancer)
I didn't actually test this in Designer Studio, but you should be able to make it work.
1. Get the content of the email in a multiple lines of text field.
2. Grab the whole table from HTML using a business rule (BR1). Inside it place a SQL command and do something like SUBSTRING where the starting position is "<table>" and ending position is "</table>".
3. Create another business rule (BR2), again with SQL command and use the query I posted above. When declaring @xml = "BR1".
4. Use BR2 for item list initialization.
Try if that works. If it doesn't, can you paste the whole email HTML here and I can have a look at it?
Hi Martin,
I really new when it comes to those advanced queries, i've searched online for the substring and found an example:
SELECT SUBSTRING(REPLACE(col,'<p><strong>By ',''),0,CHARINDEX('<',REPLACE(col,'<p><strong>By ','')))
FROM (VALUES
('<p><strong>By Dr. Mercola</strong></p> <blockquote> <p>In an interview with ElectromagneticHealth.org'),
('<p><strong>By Barbara Loe Fisher</strong></p> <blockquote> <p>Here we are in the winter of 2015, and '),
('<p><strong>By Gary Ruskin<br> Co-Founder and Executive Director, U.S. Right to Know</strong></p> <blockquote> <p>U.S. Right to Know')
) as t (col)
Do you mean something like this?
Sorry to bother you with this but I'm with some doubts!
Thanks!