<?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: Set Maximum Customer and Leads</title><link>http://forums.method.me/cs/forums/thread/26864.aspx</link><pubDate>Fri, 24 Apr 2015 13:59:33 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:26864</guid><dc:creator>Method_Audisho</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/26864.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=26864</wfw:commentRss><description>&lt;p class="p1"&gt;Hi Jonathan,&lt;/p&gt;
&lt;p class="p1"&gt;If you&amp;rsquo;re trying to retrieve the count to store it in a table, you will need to loop through your &lt;b&gt;SalesRep&lt;/b&gt; table. Inside of that loop you will use a &lt;i&gt;Retrieve Value From Table &lt;/i&gt;action for retrieving the &lt;b&gt;RecordID&lt;/b&gt; (we&amp;rsquo;re not storing the RecordID value) FROM the &lt;b&gt;Customer&lt;/b&gt; table WHERE the field &lt;b&gt;SalesRep&lt;/b&gt; is &lt;i&gt;Value From Row&lt;/i&gt; &lt;b&gt;SalesRepInitial&lt;/b&gt;. Then set the &lt;i&gt;If multiple results&lt;/i&gt; to &lt;b&gt;Retrieve Count&lt;/b&gt;.&lt;/p&gt;
&lt;p class="p1"&gt;What this is doing is looping through your &lt;b&gt;SalesRep&lt;/b&gt; table. Then for each sales rep, the retrieve action is counting the number of customers that are assigned to the current sales rep via the &lt;b&gt;SalesRepInitial&lt;/b&gt; field.&lt;/p&gt;
&lt;p class="p1"&gt;In order to separate the count for your customers and your leads, you will need to use 2 of these retrieve actions inside of your loop. Each of these retrieve actions will have a second WHERE clause. 1 being &lt;b&gt;IsLeadStatusOnly&lt;/b&gt; = &lt;b&gt;No&lt;/b&gt; and the other being &lt;b&gt;IsLeadStatusOnly&lt;/b&gt; = &lt;b&gt;Yes&lt;/b&gt;. The resulting values can be placed in an action result to be entered into a custom field in your &lt;b&gt;SalesRep&lt;/b&gt; table.&lt;/p&gt;
&lt;p class="p1"&gt;Let me know if this is more clear. If not can you tell me specifically what you are having trouble with?&lt;/p&gt;
&lt;p class="p1"&gt;-Audisho&lt;/p&gt;</description></item><item><title>Re: Set Maximum Customer and Leads</title><link>http://forums.method.me/cs/forums/thread/26858.aspx</link><pubDate>Fri, 24 Apr 2015 09:55:25 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:26858</guid><dc:creator>Jonathan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/26858.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=26858</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Hi Audisho,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;OK this one is sure tricky and I couldn&amp;#39;t get it running. There are no set of action that already build to count how many leads or customer that a SalesRep already have?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>Re: Set Maximum Customer and Leads</title><link>http://forums.method.me/cs/forums/thread/26820.aspx</link><pubDate>Tue, 21 Apr 2015 15:22:46 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:26820</guid><dc:creator>Method_Audisho</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/26820.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=26820</wfw:commentRss><description>&lt;p class="p1"&gt;Hi Jonathan,&lt;/p&gt;
&lt;p class="p1"&gt;I should add that SQL overrides can be tricky and if done incorrectly, your grid will fail to load.&lt;/p&gt;
&lt;p class="p1"&gt;If you want to forego all of this, you can customize the &lt;b&gt;CRM_CustomerList&lt;/b&gt; and &lt;b&gt;CRM_LeadList &lt;/b&gt;screens to include the &lt;b&gt;SalesRep&lt;/b&gt; field on the grid. Then all you have to do is search the grid for &amp;ldquo;&lt;i&gt;Contact&amp;rdquo;&lt;/i&gt; in the &lt;b&gt;Rep / Type / Title&lt;/b&gt; heading and the sales rep&amp;rsquo;s initials in the &lt;b&gt;SalesRep&lt;/b&gt; header. The results will include only a main contact for each customer that is assigned to the sales rep. The count will be displayed at the bottom of the grid as the number of records.&lt;/p&gt;
&lt;p class="p1"&gt;I hope this helps.&lt;/p&gt;
&lt;p class="p1"&gt;-Audisho&lt;/p&gt;</description></item><item><title>Re: Set Maximum Customer and Leads</title><link>http://forums.method.me/cs/forums/thread/26819.aspx</link><pubDate>Tue, 21 Apr 2015 15:04:08 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:26819</guid><dc:creator>Method_Audisho</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/26819.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=26819</wfw:commentRss><description>&lt;p class="p1"&gt;Hi Jonathan,&lt;/p&gt;
&lt;p class="p1"&gt;If you simply want to be able to evaluate and enforce this manually, the quickest way to obtain a count of how many customers and leads are assigned to a particular sales rep is through an SQL override.&lt;/p&gt;
&lt;p class="p1"&gt;Here is an example of a field I added to the &lt;b&gt;QuickBooks_SalesRepList&lt;/b&gt; that uses an SQL override to count the number of customers assigned to each sales rep.&lt;/p&gt;
&lt;p class="p2"&gt;&lt;span id="mce_2_start" style="overflow:hidden;"&gt;&lt;img src="http://i.imgur.com/OurzMyi.png" width="700" height="237" alt="" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;You can add any field, with the exception of &lt;b&gt;RecordID&lt;/b&gt; fields, to the grid and override them with an SQL statement by selecting the &lt;i&gt;advanced&lt;/i&gt; link.&lt;/p&gt;
&lt;p class="p2"&gt;&lt;span id="mce_3_start" style="overflow:hidden;"&gt;&lt;img src="http://i.imgur.com/bp4REvX.png" width="682" height="210" alt="" /&gt;&lt;span id="mce_4_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;You can do the same with an additional field for counting the number of leads instead.&lt;/p&gt;
&lt;p class="p1"&gt;If however, you want to be able to enforce these rules through actions on your screens, you will need to count and store these values in a field on a table. This is a process that will still require some manual input.&lt;/p&gt;
&lt;p class="p1"&gt;You will need to create a button that loops through each of your sales reps and counts the number of customers that are assigned to them, storing the result in a custom field on the table. This is not an efficient process and this action will likely take at least a couple of minutes to complete processing.&lt;/p&gt;
&lt;p class="p1"&gt;Once you have calculated this value, the actions on your screens can check agains it to evaluate if a sales rep can take on any additional customers / leads. Keep in mind that this value is only updated when you select the button you created.&lt;/p&gt;
&lt;p class="p1"&gt;The scope of this is quite large and the reliability isn&amp;rsquo;t great. Overall, my recommendation goes to the more simple SQL overrides and enforcing these rules manually.&lt;/p&gt;
&lt;p class="p1"&gt;I hope this helps.&lt;/p&gt;
&lt;p class="p1"&gt;-Audisho&lt;/p&gt;</description></item><item><title>Set Maximum Customer and Leads</title><link>http://forums.method.me/cs/forums/thread/26768.aspx</link><pubDate>Tue, 21 Apr 2015 08:25:40 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:26768</guid><dc:creator>Jonathan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/26768.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=26768</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Hi Method,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We are having a basic rules that each SalesRep can only have 200 Customer and 400 Leads. I haven&amp;#39;t got a clue on how to show the Total count of Customer or Leads. Anyone have ideas?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;</description></item></channel></rss>