Including phone numbers from phone table in standard Document Merge
Letter merge is a part of daily activity followed in sage CRM implemented in several financial and service industries. Apart from emails being sent out, these people always keep in touch with clients by posting them the welcome letters, account Kits, statements, cards etc. These letters can be very easily merged in Sage CRM using Document Merge functionality on Person and Company Entity. Now have you ever wondered how exactly Document merge pulls up all the data for person at the time of merging.
There is a view under Person entity named vMailMerge. Whatever fields this view presents can be included in the word merge templates and merged there on. Below is the original view from sage CRM version 6.2.
Now as you can see that this view already takes care of the phone numbers using the fields from Person table for fax and the default business number. Now what I want here is all the phone numbers under Phone/Email tab of that person to be available for merging in letter. So the only way I can achieve it by joining above query with phone table based on phone type and person id. Now while changing the view above we have to take care that the view should not generate more than one row for single person. You know that there may be multiple entries in phone table for that person so we have to combine them all in single row. Below is how I changed the above view to bring Business and mobile phone numbers separately from the phone table.
Now you can add the field Business_Phone_Number in the template to be merged and get the value when the template s merged.
Note: Sage CRM version 7.1 has the different structure for maintaining phone numbers i.e. using link table. So to use the above view in version 7.1 you have to join on phone link table also to get the actual numbers.
Blog Archives
- May 2013 (8)
- April 2013 (11)
- March 2013 (10)
- February 2013 (7)
- January 2013 (7)
- December 2012 (8)
- November 2012 (9)
- October 2012 (8)
- September 2012 (10)
- August 2012 (15)
- July 2012 (9)
- June 2012 (15)
- May 2012 (10)
- April 2012 (5)
- March 2012 (7)
- February 2012 (6)
- January 2012 (6)
- December 2011 (3)
- November 2011 (5)
- October 2011 (8)
- September 2011 (5)
- August 2011 (9)
- July 2011 (9)
- June 2011 (13)
- May 2011 (10)
- April 2011 (10)
- March 2011 (6)
- February 2011 (5)
- January 2011 (6)
- December 2010 (9)
- November 2010 (10)
- October 2010 (8)
- September 2010 (8)
- August 2010 (8)
- July 2010 (7)
- June 2010 (8)
- May 2010 (7)
- April 2010 (7)
- March 2010 (1)
- February 2010 (1)
- November 2009 (2)
- October 2009 (7)
- September 2009 (9)
- August 2009 (16)
- July 2009 (15)
- June 2009 (18)
- May 2009 (24)
- April 2009 (22)
- March 2009 (10)
- February 2009 (6)
- January 2009 (5)
- December 2008 (22)
- November 2008 (4)
- September 2008 (8)
- August 2008 (30)
- July 2008 (5)
- June 2008 (3)
Tags
Bi-Directional Case Communication Company CRM7.0 Custom Date document EES Email Entity Field GUMU GUMU integration GUMUMAS import INTEGRATION Lead library MAS 90/200 merge migration Notification Opporunity Order Order Entry Person Phone REAL TIME Report Sage 100 ERP Sage CRM Sage CRM.com Sage CRM 7.0 Sage CRM 7.1 Sage MAS 90/200 ERP Sage Pro Sage Saleslogix search select advance self service SSA territory Uncategorized web client workflow




