Tuesday, May 20, 2008

CRM 101 ? The Basics of Customer Relationship Management

What is CRM?
CRM, or Customer Relationship Management, can be defined as a software program, business strategy, or internet system that helps a business manage and organize its customer database. This includes contacting customers more efficiently, keeping leads hot, aiding in workplace effectiveness, and generally improving customer service and business relationships.

How Does CRM work?
Essentially, CRM works by allowing a representative or agent to access detailed customer information quickly and efficiently while the client is on the line. This means less hassle for the client and a quicker transaction.

For example, say a client contacts a company representative about possibly purchasing the company's product. With CRM, the representative would be able to see if the client had bought anything previously, and if so, what their name is, their age, how long they've used the company, what products they've bought before, how often they buy the product, and much more. This would then allow the representative to suggest and recommend the product or service option that best suits the customer in a timely manner.

Who does CRM benefit?
The beauty of CRM is that is benefits both the customer and the business or service provider. Customers receive a higher level of customer service because their needs are met and anticipated, allowing them to relax through transactions that are often much quicker than they're used to.

The business benefits via improved sales, higher customer confidence and satisfaction, and a more effective work environment. With CRM, a small business or large corporations can know what its customer wants; thus it can provide the service or product the client wants, keeping them as a repeat customer and gaining greater sales volumes.

What are some CRM applications?
CRM applications are created around the same idea as a spreadsheet, where values can be filled in and tabulated to quantify, analyze, and interpret data. A CRM application can both collect and analyze information simultaneously. This means faster, better applications and better ease of use. Clients can download, share or install these programs at their leisure via sites like Salesforce.com.

What is online CRM?
Online CRM is where a business uses an online system to manage its CRM. Straightforward and easy, online CRM is an option often taken by smaller businesses as it allows any representative to access a client's information immediately, without hours of tedious training. A example of an online CRM system might be a 24-hour call center.

What is web based CRM?
Web based CRM is where a business uses real-time updates that are integrated with their existing CRM system. This allows new information to be accessed immediately without any time lapse. It is different from a software-based Customer Relationship Management program in that it allows for live, as-it-happens updates. Thus customer information is always fresh and current.

How do CRM systems help businesses?
CRM systems help businesses by improving customer service and relationships, generating quality leads, monitoring accounts more effectively, always keeping data fresh and ready so leads don?t grow cold, allowing mobile CRM (orders through a mobile device), and managing sales.

Salesforce.com is the world's first on-demand application service and a giant in the field of CRM. With over 24,000 customers, over 500,000 subscribers, and a 97% customer satisfaction rate, Salesforce.com continues to lead their field. To find out more about them, please visit www.salesforce.com .
seo experts

Labels: , , , , ,

Wednesday, March 26, 2008

Siebel CRM guide

With the growing competition in today's business world successful Customer Relationship Management or CRM has become indispensable for any organization. Making good use of superior customer relationship management to manage and share information is a key competitive advantage for businesses today. At the same time, getting the greatest productivity and revenue benefits from sales force automation, marketing automation, and customer service applications is quickly becoming a top priority for companies of all sizes.

There are many different types of CRM applications. Some CRM applications are Web-based so they can be accessed via a browser. Other CRM applications have programs built in for integrating data entries and data management across several applications. In order to successfully collect data, manage call centers, analyze data, and make changes, businesses need these CRM applications. There are many CRM vendors in the world. The most widely-recognized vendors are Siebel, Salesforce.com, and Microsoft. Each of these vendors has contributed to CRM in its own way. CRM vendors also have specific strategies that are unique to every client. The goal of a CRM vendor is to not only upgrade a company with the latest CRM technology, but also to design the company's infrastructure in such a way that the customer/company relationship can flourish.

'Siebel Systems' is the world's leading provider of solutions that help organizations of all sizes optimize their people, processes, and technology around their customers, leading to outstanding customer experiences and superior business results. With more than $2 billion in direct and partner investment and over 11 years of experience with more than 4,000 organizations Siebel offers perfect customer relationship management, business intelligence, and customer data integration solutions.

With the global competition quickly turning their products and services into commodities the organizations have realized that they can secure cost savings only from operational efficiencies and back-end transactional improvements. Thus, they are now looking for business solutions to help them more effectively identify, acquire, serve, and retain their customers. Moreover, they're looking for help in growing customer profitability and for ways to improve the experience their customers have at every stage of the customer life cycle, from placing an order to resolving a service issue. However, this search is not uncomplicated. Creating a consistently rewarding and profitable customer experience in every interaction, across all channels, is a complex task. To face these challenges professionally and become truly customer-driven, organizations must develop a comprehensive customer-focused business strategy and then mobilize the right combination of people, processes, and technology to bring that strategy to life. This is where Siebel can make all the difference. Siebel helps companies of all sizes optimize everything, such as, their people, processes, and technology around their customers. It assists them to overcome the challenges and achieve outstanding customer-driven business results.

Therefore, as customer expectations are always increasing, the business services must increase along with these expectations. CRM is the method through which businesses can connect with their customers and hence, serve them better. Organizations with successful CRM strategy and applications will be successful in securing a large increase in sales, customer satisfaction, which will in turn ensure the overall success of their business.

Mansi gupta recommends that you visit Siebel CRM for more information

Labels: , , , , ,

Friday, March 14, 2008

CRM On-Demand Is In Demand

There are many factors involved in this significant shift from the traditional software purchase and implementation to the On-Demand offerings from companies like Salesforce.com, Microsoft, and Siebel. For the larger enterprise user, there may be implementation fatigue, from the long, drawn-out and expensive projects from the late 1990's and early 2000's. For the small and mid-market business, the elimination of the traditional software purchase and the need for less internal resources and infrastructure is very attractive. The increased bandwidth and dependability of the "pipe" and increased speed have also contributed to the acceptance of the On-Demand CRM Solutions.

Advantages of On-Demand CRM The initial hesitancy for On-Demand Solutions when they were introduced in the marketplace has been replaced with a general acceptance and understanding of the advantages of this type of solution. The advantages included:

Replacement of large Software Purchase with a monthly subscription charge - The On-Demand model is based on a monthly subscription charge per user. This allows a company to extend the software component cost of a CRM implementation over a period of time and eliminates the yearly support & maintenance fees of a traditional software product.

Flexible Pricing, Licensing, and Scalability - Some of the On-Demand vendors provide flexible pricing, allowing you to choose and pay for the functionality and services you need. You pay for the number of licenses you need with the flexibility of added users when necessary. The leading On-Demand CRM vendors have invested in significant infrastructure and have the ability to provide services to enterprise organizations.

Decrease in Hardware Requirements and Support - With a traditional CRM software implementation, you need to make sure you have the appropriate servers, workstations, operating systems, database, and network infrastructure to properly run and support your system. With an On-Demand solution, the costs and support are significantly reduced. As long as you have Internet access, you are able to use your CRM service.

Decrease in IT Support Staff - You need an IT Support Staff with various skills to maintain a CRM Software System. As noted above, as long as you have Internet access, you are able to access and use your On-Demand CRM system. Your IT support costs are reduced significantly.

Elimination of Costly Upgrade Charges - With a traditional CRM software solution, you can expect a major software upgrade every 12-18 months. Depending on your existing solution, the upgrade can be time consuming and expensive. The On-Demand Solutions provide the upgrades as part of your monthly service fee.

Remote Management - The beauty of an On-Demand solution is access from anywhere at anytime as long as you have Internet access. This allows the System Manager to remotely monitor and support the system.

Faster and Easier Deployment - On-Demand solutions eliminates the need to load software on any computer, allowing for faster and easier deployment. It allows the end-users to concentrate on the solution.

Good Solution for Distributed Offices - Distributed offices and users adds complexity to a typical CRM software solution. This is eliminated with an On-Demand solution, giving every office and every user access around the world to the same database.

General ease of use - On-Demand Solutions have been designed specifically for the Internet, providing general ease of use and navigation.

Availability of Good Mobile Solutions - With the improvement and reliability of wireless technology, you have access to excellent mobile solutions for On-Demand services using Blackberry? or Palm? Treo?.

Security and Backup Services - In order to provide a secure and reliable service offering, an On-Demand vendor has to provide the highest level of security and data back-up services. In some cases, you may find their service in these two areas superior to the security and back-up system in your own organization.

On-line Training - As part of the monthly service fee, some On-Demand vendors provide free on-line training. This can be a significant cost saving compared to the traditional classroom training.

Significant Third Party Add-ons and Web Services - As the On-Demand offerings continue to grow and gain acceptance by companies, significant third party add-on offerings have become available to meet various needs including integration, extended sales methodologies, and email fulfillment, to name a few.

Integration Capabilities - Some of the On-Demand Solutions are highly customizable and easily integrated to existing corporate backend systems.

Summary It has take a few years for On-Demand CRM Solutions to find it's place and acceptance in the marketplace. The improvement and reliability of the Internet, faster deployment, easier support, improvement in the functionality, and integration capabilities have fueled rapid growth. But, hold on, this is just the beginning!

David Cowgill is a Senior Marketing Manager in San Francisco. His coverage area focuses on the technologies that facilitate managing CRM analytics and lead generation.

For further information contact: David Cowgill CRM Blog Founder http://crm.blogs.com

Labels: , , , , ,

Thursday, February 28, 2008

Microsoft Dynamics AX-GP-NAV-CRM: trends & international recommendations

Microsoft Dynamics project ? or formerly referred as Project Green should unify and modulate all Microsoft Business Solutions ERP applications: Microsoft Great Plains/Microsoft Dynamics GP, Microsoft Navision (former Attain) Microsoft Dynamics NAV, Microsoft (Navision) Axapta/Microsoft Dynamics AX. 

Microsoft Dynamics project ? or formerly referred as Project Green should unify and modulate all Microsoft Business Solutions ERP applications: Microsoft Great Plains/Microsoft Dynamics GP, Microsoft Navision (former Attain) Microsoft Dynamics NAV, Microsoft (Navision) Axapta/Microsoft Dynamics AX.  The challenge of unification probably will result in quality change for the unified interface, such as Web/Business portal/Microsoft Outlook & MS Office integration, Deployment of new technologies, such as Microsoft Sharepoint with workflow automation.  Plus the development platform for Microsoft Dynamics products should shift from proprietary tools, such as Microsoft Dexterity, C/SIDE, MorphX (no confirmation for Axapta yet ? but we guess it should follow) to C# and VB.Net with VisualStudio.  In this small article we will try to orient IT managers in Microsoft Business Solutions MRP products selection for international and regional markets.

  • Microsoft Dynamics GP.  The regional markets for Great Plains 9.0 and following Microsoft Dynamics GP 10.0 version will narrow: United States, United Kingdom, Canada: both English and French speaking, Australia, New Zealand, South Africa and other English speaking countries in Asia, Africa and Worldwide, plus Spanish Speaking Latin America.  Microsoft Dynamics GP 10 will not be available for Germany, France, Belgium, Netherlands, Poland ? the last version localized for these European countries will be 9.0 ? June 2006
  • Microsoft Dynamics NAV.  Currently Navision has very good presence in Europe, including East Europe: Poland, Russia, Ukraine, Czech Republic, Slovakia.  Microsoft also localized Navision for new markets, where it just moved in: Brazil for example ? it was interesting development in Brazil ? first Microsoft probed Solomon, then Microsoft Great Plains 7.5 and in 2004 replaced it with localized Navision
  • Microsoft Dynamics AX.  Microsoft Axapta, opposite to Navision or Great Plains where market shares are gained/divided and competition is based on renovations and product improvements, Axapta has great potential yet to be deployed, coming from its modern and very futuristic system design and architecture.  Being targeted to upper mid-market and corporate clients Axapta shows very good progress on emerging markets: in Russia for example the number of Axapta installation is similar and comparable with the number of Navision installations.  Plus, in 2005 large number of Microsoft Business Solutions gold certified partners rushed into Axapta consulting arena ? this is seen in the USA, UK, Australia and continental Europe.  In Brazil currently MBS in local Portuguese Axapta launching mode ? localized for Brazilian tax code
  • Microsoft Dynamics CRM.  Is planned as front CRM solution for the majority of Microsoft Dynamics ERP system: integration with Microsoft Dynamics GP is available for GP 7.5, 8.0, 9.0 and CRM 1.2 and 3.0, Microsoft Navision ? through third party integrations, Axapta integration is planned.  Microsoft has Microsoft CRM as worldwide product, so you should not have any doubts regarding your regional market.
  • Competition. Oracle is on the way with Oracle Fusion project, aiming on Oracle Financials/Applications/E-Business Suite, PeopleSoft, JDEdwards and potentially Siebel integration.  SAP with the purchase of new mid and small market ERP: SAP Business One and Mendocino ? for SAP R/3 is catching up

Please do not hesitate to call or email us: USA 1-866-528-0577Health Fitness Articles, 1-630-961-5918 help@albaspectrum.com

Andrew Karasev is Chief Technology Officer at Alba Spectrum Technologies ( http://www.albaspectrum.com http://www.greatplains.com.mx http://www.enterlogix.com.br ) - Microsoft Business Solutions Great Plains, Navision, Axapta MS CRM, Oracle Financials and IBM Lotus Domino Partner, serving corporate customers in the following industries: Aerospace & Defense, Medical & Healthcare, Distribution & Logistics, Hospitality, Banking & Finance, Wholesale & Retail, Chemicals, Oil & Gas, Placement & Recruiting, Advertising & Publishing, Textile, Pharmaceutical, Non-Profit, Beverages, Conglomerates, Apparels, Durables, Manufacturing and having locations in multiple states and internationally.

Labels: , , , ,

Wednesday, February 6, 2008

Microsoft CRM Customization: Integration with third party SQL Application/Database

Microsoft CRM Client Relationship Management package from Microsoft Business Solutions was initially designed to be customizable with Microsoft Visual Studio.Net and one of its programming languages C#.Net or VB.Net. You can use ADO.Net, Web Service, Transact SQL scripting and stored procedures, deploy such SQL Server tools as Linked Server to all ODBC/OLEDB compliant database, including ORACLE, Sybase, Ingress, DB2, Unidata, Pervasive SQL, Ctree and even Lotus Notes/Domino. In this small article we would like to give you the clue on programming the integration with SQL third party Database.

First use Microsoft CRM SDK to initiate communication with Microsoft CRM, we have it in C#:


String[] arr1 = coll.AllKeys;

int loop1, loop2;

for (loop1 = 0; loop1 0?1:arr1.Length); loop1++)

{

String[] arr2 = coll.GetValues(arr1[loop1]);

for (loop2 = 0; loop2 < arr2.Length; loop2++)

{

strAccountId = arr2[loop2].Replace("}",null);

strAccountId = strAccountId.Replace("{",null);

}

}

if (Page.IsPostBack==false)

{

// Server should be set with the name of the platform Web server

string Server = ConfigurationSettings.AppSettings["ServerName"];

// VirtualDirectory should be set with the name of the Microsoft

// CRM Virtual Directory on the platform Web server

string VirtualDirectory = "mscrmservices";

string strDir = "http://" + Server + "/" + VirtualDirectory + "/";

// BizUser proxy object

Microsoft.CRM.Proxy.BizUser oBizUser = new Microsoft.CRM.Proxy.BizUser ();

oBizUser.Credentials = System.Net.CredentialCache.DefaultCredentials;

oBizUser.Url = strDir + "BizUser.srf";

// CRMAccount proxy object

Microsoft.CRM.Proxy.CRMAccount account = new Microsoft.CRM.Proxy.CRMAccount ();

account.Credentials = System.Net.CredentialCache.DefaultCredentials;

account.Url = strDir + "CRMAccount.srf";


Then you use ADO.Net for calling stored procedure with parameters to do the integration job:


try

{

string SQLStatement="ICS_UpdateAccountPrivate '"+

strAccountId +"' , '" + this.TextBoxWorkPerformed.Text +

"' , "+doubleEncode(System.Double.Parse(this.TextBoxAnnualRevenue.Text))+" , "+

intEncode(System.Int32.Parse(this.TextBoxNumberOfEmployees.Text.Replace(",","")))+" , "+

doubleEncode(System.Double.Parse(this.TextBoxAverageGrowthRate.Text))+" , "+

"'"+this.DropDownListOwnership.SelectedItem.Text +"' , "+

intEncode(System.Int32.Parse(this.RadioButtonList.SelectedItem.Value))+" , "+

intEncode(System.Int32.Parse(this.TextBoxCredit.Text.Replace(",","")))+" , '"+

this.TextBoxComments.Text+"'";

System.Data.SqlClient.SqlConnection tmpConnection =

new System.Data.SqlClient.SqlConnection(ConfigurationSettings.AppSettings["ConnectionStringICS"]

Andrew Karasev is Chief Technology Officer in Alba Spectrum Technologies USA nationwide Great Plains, Microsoft CRM customization company, based in Chicago, California, Texas, Florida, New York, Georgia, Colorado, Oregon, Washington, Canada, UK, Australia and having locations in multiple states and internationally (www.albaspectrum.com), he is CMA, Great Plains Certified Master, Dexterity, SQL, C#.Net, Crystal Reports and Microsoft CRM SDK developer. You can contact Andrew: 1-866-528-0577 andrewk@albaspectrum.com.


akarasev@albaspectrum.com

Labels: , , ,

Wednesday, January 30, 2008

CRM - Everyone You Meet is Fighting a Hard Battle

Relationships... Money... Health..The Past...Failure..Mental and Spiritual Battles..Time Constraints...Professional pressures..

At any given moment you, your clients, and employees are dealing with one or the other of these challenges in life. No one has escaped from this life untouched by problems, both big and small. No matter how people may appear on the outside, they battle with some problem that is unmanageable on the inside. The clearer this is to us the easier it is to be extrodinarily kind to others.

But if we are also suffering how is it possible to do this? It is not easy, it is a learned skill. It needs to be taught to all your employees. It must be practiced and practiced until it becomes habit. This habit needs to be policy and employees need to be encouraged daily until the habit is developed.

Customer Relationships are built on this knowledge. Why people act a certain way is always based on their level of life challenges at a given moment. This includes both employees and customers.

We cannot solve all their problems nor should we, but the fact that a person might be struggling in their personal or professional life needs to in the back of our mind whenever we deal with people.

There is nothing as memorable as a person's kindness when we are in a difficult situation.

Help your clients to solve their immediate problems (pertaining to your business!)and they will be satisfied. Give them reason to smile and they will be impressed. Do it every time they contact you and they will never leave you. Client loyalty is a reflection of the level of care they preceive they are getting from a business. This does not mean we sacrifice our profits and productivity. It means that we increase our profits and productivity. Happy employees work better and exhibit higher levels of company loyalty when dealing with customers and happy customers will return and tell their friends.

No matter what you sell or manufacture; from fertilizer to real estate, from preschools to restaurants, you are first in the business of providing solutions for people. These solutions need to include how the person feels when they walk out the door, and you must always keep that in mind.

Owner Lasting Impressions 2 - Custom Business gift baskets, greeting cards, Customer Service Tips
www.lastingimpressions2.com

 

Labels: , , , ,

Monday, January 28, 2008

Microsoft Business Solutions Great Plains, Navision, Solomon, CRM & RMS: serving international clien

Microsoft Business Solutions products: Microsoft Great Plains, Navision, Solomon, Microsoft CRM, Microsoft RMS are now serving not only to small and mid-size, but also large clients, plus they maybe reasonably priced solution for the branch of multi-national corporation.

Microsoft Business Solutions products: Microsoft Great Plains, Navision, Solomon, Microsoft CRM, Microsoft RMS are now serving not only to small and mid-size, but also large clients, plus they maybe reasonably priced solution for the branch of multi-national corporation.  This raises question of supporting Microsoft Business Solutions product installation remotely and internationally.  We do not question local Microsoft partners service quality, the question maybe different local partners may not be authorized to sell and service specific MBS product, the example in France MBS promotes Navision, but there are multiple cases when branch of the US-based company in France needs users training and support for Microsoft Great Plains system.

In this small article we are trying to give you the best system selection idea, depending on your country and business type.

Microsoft has two major mid-market ERP packages: Microsoft Great Plains and Navision (Solomon is the one to consider for Project oriented company this would deserve dedicated publication).

  • Microsoft Great Plains this application serves the markets, formerly targeted and gained by Great Plains Software (Great Plains Dynamics/eEnterprise or Great Plains Accounting), later on GPS was purchased by Microsoft.  These markets are: USA, Canada, Spanish Speaking South and Central America (except Brazil), South Africa, Middle East, Australia, New Zealand and Oceania.  If you are in these regions you should probably consider Microsoft Great Plains
  • Navision we believe that Microsoft bought Navision Software Denmark based software development company few years ago in order to get European market share.  However Navision Software itself had long history of penetration to US market.  This is why we see Navision clients in both Europe and US. Now Microsoft seems to appreciate Navision accommodation to former European tax and language specifics and it promotes Navision on emerging markets: Russia, East Europe, Africa, Asia.  In Brazil situation is more complex Microsoft have not decided yet and you can have either Navision or Great Plains (our subdivision Enterlogix.com.br is exclusive Great Plains reseller in Brazil).  It is very delicate question for MBS - but what you can see - Great Plains version 8.0 has fewer number of languages support and at the same time Navision has more with new releases.
  • Microsoft CRM Microsoft promotes its CRM worldwide and it is web based so it naturally automates your worldwide operations or serves you in your local country.  Microsoft CRM has C# and VB.Net based SDK, BizTalk server based integration to Great Plains and Microsoft SQL Server database.  Plus it deploys all the spectrum of Microsoft technologies: MS Exchange, Message Queuing, Active Directory.
  • Solomon - this ERP application was formerly bought by Great Plains Software (before GPS was bought it its turn by Microsoft) - Solomon is very good fit for project-driven organization. 
  • Microsoft RMS you should probably stay with Navision Retail module if you are in the region where MBS promotes Navision.  In all other places consider Microsoft Retail Management System: RMS Store Operations and POS.  If you have multiple stores you may manage and control them via Microsoft RMS Headquarters.  RMS has several integration options to Microsoft Great Plains.
  • Remote Support Technology it gives you cheaper consulting rates, because consultant doesnt have to travel to you and can serve several remote clients per day.  Microsoft VPN and Remote desktop solution is usually free for the client and in the case of sophisticated firewall Web Session could be another way to serve.  We do voice training, based on Internet telephony solutions, such as Skype enable you free voice over the internet.
  • Customization it is always better to avoid it however if you really need it, you should consider MBS customization partner who specializes in custom development and has experienced programmer.  In such a case we do not recommend to stick to local programmers in our experience local markets may not provide enough clientele for local developers to specialize in your product customization.  Also we do not recommend choosing generic offshore software developer.  MBS products require dedication in their customizations and integrations.

You can always have us help you internationally, give us a call: 1-630-961-5918 or 1-866-528-0577, help@albaspectrum.com

Andrew Karasev is Chief Technology Officer in Alba Spectrum Technologies USA nationwide Great Plains, Microsoft CRM, Microsoft RMS customization company, serving clients in Chicago, Arizona, Colorado, California, Texas, New York, Georgia, Florida, Minnesota( http://www.albaspectrum.com )

Labels: , , , , , ,

Wednesday, January 2, 2008

Hosted CRM: What is it?

San Francisco, CA (ARTICLEMARKETER) August 09, 2005 -- When hosted CRM was first introduced, concerns were voiced about its drawbacks: the lack of customization, integration with other applications, support, third party storage, control over data control and the performance of service reps - not to mention the all-important security issue. Hostings biggest drawback is that your most important data is in a third-partys hands.

Although CRM, as hosted solutions are also known, are not as difficult or as costly to install as packaged solutions, they still require an infrastructure, significant IT resources, and time to deploy.

Application integration has been another challenge for ASPs. Since ASPs unilaterally update their code bases, this opens the possibility that an integrated business process could be broken by a change that you dont control.

Privacy and privacy laws are another concern: you must investigate what safeguards an ASP offers to protect your data. As you can see, hosted CRM isnt perfect. Aberdeen researchers found that when considering these problems, support for hosting dampens. One way around this might be a hybrid approach: rent now, buy later.


It Does Not Have To Be Either-Or

Another emerging trend is that companies adopt hosted solutions as a low-risk way of evaluating a CRM solutions capabilities before they buy into an in-house set up. This approach allows companies to mitigate risk and experience the benefits of rapid time-to-value. Once companies see a ROI, then they can choose to bring the solution in-house.

The decision between an in-house implementation and a hosted solution is based on many factors. It is important to evaluate your business plan, technology strategy, risk profile, IT budgets, IT resources, opportunity costs, customization requirements and industry-sector requirements.


Visit http://www.sales-force-software.com for more information.

David Cowgill
http://www.sales-force-software.com
e-mail protected from spam bots
 

Labels: , , , , , ,

Tuesday, November 27, 2007

Microsoft CRM Programming Secrets tips for developer

This article is for advanced Microsoft CRM SDK C# developers. It describes the technique of direct SQL programming, when SDK doesn't have the functionality to do the job.

Introduction. Looks like Microsoft CRM becomes more and more popular, partly because of Microsoft muscles behind it. Now it is targeted to the whole spectrum of horizontal and vertical market clientele. It is tightly integrated with other Microsoft Business Solutions products such as Microsoft Great Plains, Solomon, Navision (the last two in progress).

Here we describe the technique of creating closed activity-email using MS CRM SDK and direct SQL programming.

Imaging something like this. You need to handle incoming email before it is committed to MS Exchange database. You need to analyze if incoming email doesn't have GUID in its Subject (GUID will allow MS CRM Exchange Connector to move email to Microsoft CRM and attach it to the Contact, Account or Lead) - then you still need to lookup MS CRM in case if one of the accounts, contacts or leads has email address that matches with sender email address - then you need to create closed activity-email in MS CRM, attached to the object and placed into general queue.

How to create MS Exchange handler is outside of the scope, please see this article:


http://www.albaspectrum.com/Customizations_Whitepapers/Dexterity_SQL_VBA_Crystal/ExchangeHandlerExample.htm

Now the code below is classical MS CRM SDK and it will create activity email:


public Guid CreateEmailActivity(Guid userId, int objectType, Guid objectId, string mailFrom, CRMUser crmUser, string subject, string body) {

try {

log.Debug("Prepare for Mail Activity Creating");

// BizUser proxy object

Microsoft.Crm.Platform.Proxy.BizUser bizUser = new Microsoft.Crm.Platform.Proxy.BizUser();

ICredentials credentials = new NetworkCredential(sysUserId, sysPassword, sysDomain);

bizUser.Url = crmDir + "BizUser.srf";

bizUser.Credentials = credentials;

Microsoft.Crm.Platform.Proxy.CUserAuth userAuth = bizUser.WhoAmI();

// CRMEmail proxy object

Microsoft.Crm.Platform.Proxy.CRMEmail email = new Microsoft.Crm.Platform.Proxy.CRMEmail();

email.Credentials = credentials;

email.Url = crmDir + "CRMEmail.srf";

// Set up the XML string for the activity

string strActivityXml = "";

strActivityXml += "";

strActivityXml += "") + "]]>";

strActivityXml += "";

strActivityXml += userId.ToString("B") + "";

strActivityXml += "";

// Set up the XML string for the activity parties

string strPartiesXml = "";

strPartiesXml += "";

strPartiesXml += "" + crmUser.GetEmailAddress() + "";

strPartiesXml += "" + Microsoft.Crm.Platform.Types.ObjectType.otSystemUser.ToString() + "";

strPartiesXml += ""+ crmUser.GetId().ToString("B") + "";

strPartiesXml += "";

strPartiesXml += Microsoft.Crm.Platform.Types.ACTIVITY_PARTY_TYPE.ACTIVITY_PARTY_TO_RECIPIENT.ToString();

strPartiesXml += "";

strPartiesXml += "";

strPartiesXml += "";

strPartiesXml += "" + mailFrom + "";

if (objectType == Microsoft.Crm.Platform.Types.ObjectType.otAccount) {

strPartiesXml += "" + Microsoft.Crm.Platform.Types.ObjectType.otAccount.ToString() + "";

}

else if (objectType == Microsoft.Crm.Platform.Types.ObjectType.otContact) {

strPartiesXml += "" + Microsoft.Crm.Platform.Types.ObjectType.otContact.ToString() + "";

}

else if (objectType == Microsoft.Crm.Platform.Types.ObjectType.otLead) {

strPartiesXml += "" + Microsoft.Crm.Platform.Types.ObjectType.otLead.ToString() + "";

}

strPartiesXml += ""+ objectId.ToString("B") + "";

strPartiesXml += "";

strPartiesXml += Microsoft.Crm.Platform.Types.ACTIVITY_PARTY_TYPE.ACTIVITY_PARTY_SENDER.ToString();

strPartiesXml += "";

strPartiesXml += "";

strPartiesXml += "";

log.Debug(strPartiesXml);

// Create the e-mail object

Guid emailId = new Guid(email.Create(userAuth, strActivityXml, strPartiesXml));

return emailId;

}

catch (System.Web.Services.Protocols.SoapException e) {

log.Debug("ErrorMessage: " + e.Message + " " + e.Detail.OuterXml + " Source: " + e.Source);

}

catch (Exception e) {

log.Debug(e.Message + "" + e.StackTrace);

}

return new Guid();

}


Now I would like to share the trick with you - there is no method to make this activity closed in MS CRM SDK 1.2 (if somebody knows the one - I owe you small pocket aquarium - smile!). Obviously Microsoft doesn't support if you do direct SQL programming bypassing SDK. However I would say this is not direct objects creation - this is rather flags correction. So here is what we have - this procedure will do the job and make activity closed:


public void UpdateActivityCodes(Guid emailId) {

try {

OleDbCommand command = conn.CreateCommand();

command.CommandText = "UPDATE ActivityBase SET DirectionCode = (?), StateCode = (?), PriorityCode = (?) WHERE ActivityId = (?)";

command.Prepare();

command.Parameters.Add(new OleDbParameter("DirectionCode", Microsoft.Crm.Platform.Types.EVENT_DIRECTION.ED_INCOMING));

command.Parameters.Add(new OleDbParameter("StateCode", Microsoft.Crm.Platform.Types.ACTIVITY_STATE.ACTS_CLOSED));

command.Parameters.Add(new OleDbParameter("PriorityCode", Microsoft.Crm.Platform.Types.PRIORITY_CODE.PC_MEDIUM));

command.Parameters.Add(new OleDbParameter("ActivityId", emailId));

log.Debug("Prepare to update activity code " + emailId.ToString("B") + " in ActivityBase");

command.ExecuteNonQuery();

}

catch(Exception e) {

log.Debug(e.Message + "" + e.StackTrace);

}

}


Happy customizing! if you want us to do the job - give us a call 1-866-528-0577! help@albaspectrum.com

Andrew Karasev is Chief Technology Officer in Alba Spectrum Technologies USA nationwide Microsoft CRM, Microsoft Great Plains customization company, based in Chicago, California, Colorado, Texas, New York, Georgia and Florida, Canada, UK, Australia and having locations in multiple states and internationally (www.albaspectrum.com), he is Dexterity, SQL, C#.Net, Crystal Reports and Microsoft CRM SDK developer.


akarasev@albaspectrum.com

Labels: , , , , , , , ,