<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Method:Classic General Q&amp;amp;A</title><link>http://forums.method.me/cs/forums/13.aspx</link><description>Ask technical support questions, how do I? Questions... Or anything else you want to know from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: Loop the data in the Email</title><link>http://forums.method.me/cs/forums/thread/21994.aspx</link><pubDate>Fri, 23 May 2014 14:36:07 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:21994</guid><dc:creator>Method_Russell</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/21994.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=21994</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Hi Michael,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;/span&gt;Sounds like you understand correctly. At a high level, you&lt;span id="mce_19_start" style="overflow:hidden;"&gt;r entire action set to prepare and send the email&lt;/span&gt;&amp;nbsp;would do something like this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span id="mce_3_start" style="overflow:hidden;"&gt;Initialize the action result&lt;span id="mce_4_start" style="overflow:hidden;"&gt; which will hold the body&lt;/span&gt;, &lt;span id="mce_22_start" style="overflow:hidden;"&gt;with this action result&amp;nbsp;&lt;/span&gt;add any static text&lt;span id="mce_9_start" style="overflow:hidden;"&gt; (before the table)&lt;/span&gt; to the body of your email, and initialize the &lt;span id="mce_10_start" style="overflow:hidden;"&gt;table&amp;#39;s HTML.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="overflow:hidden;"&gt;Loop through a grid/table. In the loop, you can place the field(s) from each row into a temporary&amp;nbsp;action result&lt;span id="mce_5_start" style="overflow:hidden;"&gt;&lt;/span&gt;, along with the HTML&amp;nbsp;&lt;span id="mce_6_start" style="overflow:hidden;"&gt;&lt;span id="mce_8_start" style="overflow:hidden;"&gt;for the table&amp;#39;s row. Then (while still in the loop), join this&amp;nbsp;&lt;span id="mce_26_start" style="overflow:hidden;"&gt;temp&amp;nbsp;&lt;/span&gt;&lt;span id="mce_11_start" style="overflow:hidden;"&gt;action result to the end of&amp;nbsp;the body&amp;#39;s action result. The body action result&amp;nbsp;is what will accumulate each row, so each time the loop runs, &lt;span id="mce_25_start" style="overflow:hidden;"&gt;another row of the table will be joined.&lt;/span&gt;&lt;span id="mce_13_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;After the loop, join more HTML to the body&amp;#39;s action result to c&lt;span id="mce_16_start" style="overflow:hidden;"&gt;&lt;/span&gt;lose the table&lt;span id="mce_17_start" style="overflow:hidden;"&gt;&lt;span id="mce_18_start" style="overflow:hidden;"&gt;. Send the email with this action result.&lt;span id="mce_21_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;&lt;span id="mce_20_start" style="overflow:hidden;"&gt;&lt;/span&gt;-Russell&lt;/div&gt;</description></item><item><title>Re: Loop the data in the Email</title><link>http://forums.method.me/cs/forums/thread/21985.aspx</link><pubDate>Fri, 23 May 2014 00:47:22 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:21985</guid><dc:creator>m.mehr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/21985.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=21985</wfw:commentRss><description>&lt;p&gt;Thanks Russell!&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_27_start" style="overflow:hidden;"&gt;&lt;/span&gt;If I understand correctly, the action result used in the body field in the send email action needs to contain the &lt;span id="mce_23_start" style="overflow:hidden;"&gt;&lt;span id="mce_28_start" style="overflow:hidden;"&gt;dynamically generated&amp;nbsp;&lt;/span&gt;&lt;/span&gt;rowset from the database in HTML format.&lt;span id="mce_26_start" style="overflow:hidden;"&gt;&lt;/span&gt; &amp;nbsp;But what action type would be used to &lt;span id="mce_24_start" style="overflow:hidden;"&gt;&amp;quot;&lt;/span&gt;accumulate&lt;span id="mce_25_start" style="overflow:hidden;"&gt;&amp;quot;&lt;/span&gt; each row from the loop, which is what ultimately becomes part of the HTML code?&lt;/p&gt;</description></item><item><title>Re: Loop the data in the Email</title><link>http://forums.method.me/cs/forums/thread/21964.aspx</link><pubDate>Thu, 22 May 2014 16:53:20 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:21964</guid><dc:creator>Method_Russell</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/21964.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=21964</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Hi Michael,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;/span&gt;This would be part of the actio&lt;span id="mce_25_start" style="overflow:hidden;"&gt;&lt;/span&gt;n&lt;span id="mce_1_start" style="overflow:hidden;"&gt; set&lt;/span&gt; that sends the&amp;nbsp;&lt;span id="mce_2_start" style="overflow:hidden;"&gt;email&lt;span id="mce_13_start" style="overflow:hidden;"&gt;&lt;span id="mce_15_start" style="overflow:hidden;"&gt;, &lt;span id="mce_19_start" style="overflow:hidden;"&gt;&lt;/span&gt;before the Send Email action&amp;nbsp;so that the HTML generated would be up to date.&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;span id="mce_12_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;span id="mce_3_start" style="overflow:hidden;"&gt;&lt;span id="mce_27_start" style="overflow:hidden;"&gt;The generated HTML code would be used instead of the template.&lt;/span&gt;&lt;span id="mce_17_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id="mce_8_start" style="overflow:hidden;"&gt;&lt;span id="mce_9_start" style="overflow:hidden;"&gt;&lt;span id="mce_11_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_7_start" style="overflow:hidden;"&gt;&lt;span id="mce_8_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_10_start" style="overflow:hidden;"&gt;&lt;span id="mce_22_start" style="overflow:hidden;"&gt;&lt;span id="mce_26_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;span id="mce_28_start" style="overflow:hidden;"&gt;In regards to where you would place these actions, i&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;t &lt;span id="mce_29_start" style="overflow:hidden;"&gt;&lt;/span&gt;depend&lt;span id="mce_30_start" style="overflow:hidden;"&gt;s&lt;/span&gt; on what event &lt;span id="mce_31_start" style="overflow:hidden;"&gt;&lt;/span&gt;would&lt;span id="mce_31_end" style="overflow:hidden;"&gt;&lt;/span&gt; trigger the email being sent&lt;span id="mce_32_start" style="overflow:hidden;"&gt; (such as&lt;span id="mce_33_start" style="overflow:hidden;"&gt; clicking&lt;/span&gt; a Send Email button)&lt;/span&gt;.&amp;nbsp;&lt;span id="mce_4_start" style="overflow:hidden;"&gt;&lt;span id="mce_14_start" style="overflow:hidden;"&gt;If you have more than one event that would trigger the email being sent, then you could use the Call Another Action Set action.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;-Russell&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Loop the data in the Email</title><link>http://forums.method.me/cs/forums/thread/21963.aspx</link><pubDate>Thu, 22 May 2014 16:13:32 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:21963</guid><dc:creator>m.mehr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/21963.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=21963</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Thanks Russell,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;/span&gt;When you say the &lt;span id="mce_2_start" style="overflow:hidden;"&gt;custom looping&amp;nbsp;&lt;/span&gt;HTML for the email body goes into an Action Result, where would that actually be in Method? &amp;nbsp;On a button or a screen&lt;span id="mce_4_start" style="overflow:hidden;"&gt; or the HTML code of an email template&lt;/span&gt;? &amp;nbsp;Or somewhere else?&lt;span id="mce_9_start" style="overflow:hidden;"&gt; &amp;nbsp;&lt;/span&gt;I am not askin&lt;span id="mce_5_start" style="overflow:hidden;"&gt;&lt;/span&gt;g you about the custom code&lt;span id="mce_7_start" style="overflow:hidden;"&gt; itself&lt;/span&gt;,&lt;span id="mce_6_start" style="overflow:hidden;"&gt;&lt;/span&gt; but WHERE IN METHOD the custom code would go to achieve the desired result.&lt;span id="mce_8_start" style="overflow:hidden;"&gt;&lt;span id="mce_10_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Michael&amp;nbsp;&lt;span id="mce_11_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Loop the data in the Email</title><link>http://forums.method.me/cs/forums/thread/21953.aspx</link><pubDate>Thu, 22 May 2014 13:09:27 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:21953</guid><dc:creator>Method_Russell</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/21953.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=21953</wfw:commentRss><description>&lt;p class="p1"&gt;Hi M Mehr,&lt;/p&gt;
&lt;p class="p2"&gt;Greetings from Toronto!&lt;/p&gt;
&lt;p class="p1"&gt;Method has the Mail Merge feature (&lt;a href="http://www.methodintegration.com/method/kb.aspx?folder=methodcrm&amp;amp;article=Mail-merge&amp;amp;id=302"&gt;&lt;span class="s1"&gt;http://www.methodintegration.com/method/kb.aspx?folder=methodcrm&amp;amp;article=Mail-merge&amp;amp;id=302&lt;/span&gt;&lt;/a&gt;), however this only replaces placeholders with a single field, rather than adding multiple items which you are trying to achieve.&lt;/p&gt;
&lt;p class="p1"&gt;Generating an email with a variable number of table rows is possible, however it would take a lot work. To do this, you would have to manually build the HTML for the email body into an Action Result, and using a loop add each row in the table to that HTML. Something like this: &lt;a href="http://www.ryerson.ca/JavaScript/lectures/flowControl/loops/writingTables/simpleTable.html"&gt;&lt;span class="s1"&gt;http://www.ryerson.ca/JavaScript/lectures/flowControl/loops/writingTables/simpleTable.html&lt;/span&gt;&lt;/a&gt;, except with Method actions instead of Javascript of course.&lt;/p&gt;
&lt;p class="p1"&gt;Alternatively, you can use the report designer to dynamically build the list of open invoices, and create a PDF of this report. Then the report can be attached to an email. For more information on the report designer, please see this article: &lt;a href="http://www.methodintegration.com/method/kb.aspx?folder=methodcrm&amp;amp;article=Generate-Report&amp;amp;id=151"&gt;&lt;span class="s1"&gt;http://www.methodintegration.com/method/kb.aspx?folder=methodcrm&amp;amp;article=Generate-Report&amp;amp;id=151&lt;/span&gt;&lt;/a&gt; and these 3 webinars: &lt;a href="http://www.methodintegration.com/method/kb.aspx?folder=methodcrm&amp;amp;article=Method-V1&amp;amp;id=369#main12"&gt;&lt;span class="s1"&gt;http://www.methodintegration.com/method/kb.aspx?folder=methodcrm&amp;amp;article=Method-V1&amp;amp;id=369#main12&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p class="p1"&gt;If you have any further questions please let us know.&lt;/p&gt;
&lt;p class="p1"&gt;-Russell&lt;/p&gt;</description></item><item><title>Re: Loop the data in the Email</title><link>http://forums.method.me/cs/forums/thread/21922.aspx</link><pubDate>Wed, 21 May 2014 00:20:48 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:21922</guid><dc:creator>m.mehr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/21922.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=21922</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Greetings from Las Vegas and BUMP on an old post which does not appear&amp;nbsp;to have been answered.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Is there a way to insert a DYNAMIC grid of info into an email template?&lt;/p&gt;
&lt;p&gt;For example, a list of open invoices on an email to a customer or a list of open bills on an email to a vendor?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;</description></item><item><title>Re: Loop the data in the Email</title><link>http://forums.method.me/cs/forums/thread/11147.aspx</link><pubDate>Wed, 07 Mar 2012 19:34:44 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:11147</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/11147.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=11147</wfw:commentRss><description>&lt;p&gt;Hi Navitha, &lt;/p&gt;
&lt;p&gt;In the email template, you can retrieve the data from the Method tables by having merge fields which will allow you to have values from tables appear in your e-mail, such as a customer&amp;#39;s name, the total amount due on their account, or the e-mail signature of the user sending the e-mail.&lt;/p&gt;
&lt;p&gt;There are two steps to setting up merge fields:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Step 1: enter merge fields in your email template&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Type in your merge fields in a TableName.FieldName format.&amp;nbsp; So if you wanted to have an email start with &amp;quot;Dear Bob,&amp;quot; you would type in &amp;quot;Dear Customer.FirstName,&amp;quot;.&amp;nbsp;&amp;nbsp; If you wanted to sign your email with the user&amp;#39;s signature, you would finish it with &amp;quot;Users.EmailSignature&amp;quot;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 2: use the &amp;#39;Replace merge fields&amp;#39; action&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;If you are not the designer of your system, this step should already be done for you.&amp;nbsp; If you are a designer, however, you&amp;#39;ll need to do some extra work to make sure that the merge fields actually get replaced with real values.&amp;nbsp; For every table used in merge fields, you&amp;#39;ll need to run a Character Function action, specifically the &amp;#39;Replace merge fields&amp;#39; command, to replace the merge fields with real values.&lt;/p&gt;
&lt;p&gt;In the body of the e-mail template, in the toolbar,&amp;nbsp; there is a function called &lt;b&gt;Insert Table&lt;/b&gt; right beside &lt;b&gt;Insert Image&lt;/b&gt; function. You can implement the &lt;b&gt;Insert Image&lt;/b&gt; action in the body of the e-mail template by selecting the arrow pointing &lt;b&gt;down&lt;/b&gt; right beside the &lt;b&gt;Insert Table&lt;/b&gt; function.This will add a table in the body of the e-mail where you can add the merge fields to populate the correct information.&lt;/p&gt;
&lt;p&gt;I hope that this helps. &lt;/p&gt;
&lt;p&gt;Ronen&lt;/p&gt;</description></item><item><title>Re: Loop the data in the Email</title><link>http://forums.method.me/cs/forums/thread/11127.aspx</link><pubDate>Wed, 07 Mar 2012 05:45:45 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:11127</guid><dc:creator>Navitha</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/11127.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=11127</wfw:commentRss><description>&lt;p&gt;Hi Ronen,&lt;/p&gt;
&lt;p&gt;I am creating a EmailTemplate and using that, yes in the body of the Email i am trying to display the data from the table in the method.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Navitha.&lt;/p&gt;</description></item><item><title>Re: Loop the data in the Email</title><link>http://forums.method.me/cs/forums/thread/11078.aspx</link><pubDate>Mon, 05 Mar 2012 17:22:01 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:11078</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/11078.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=11078</wfw:commentRss><description>&lt;p&gt;Hi Navitha, &lt;/p&gt;
&lt;p&gt;I have some questions for you:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;How are you generating the e-mail in Method?&lt;/li&gt;
&lt;li&gt;Are you trying to display data from a table in Method in the body of the e-mail?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Ronen&lt;/p&gt;</description></item><item><title>Loop the data in the Email</title><link>http://forums.method.me/cs/forums/thread/11064.aspx</link><pubDate>Mon, 05 Mar 2012 05:07:58 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:11064</guid><dc:creator>Navitha</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/11064.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=11064</wfw:commentRss><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am generating the email from methods. I need to retrieve the data from the database and display in the tabular format. But when I am merging the data using the Character function, i am able to retrieve only one row data, I am not seeing the multiple rows. Is there any other way to display the data in the E-mail in the tabular format.&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Navitha.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>