Software Information

Microsoft CRM: Data Conversion - Import from Act!


Home | Site Map | 101InfoLinks.com | Best Book Shop | Sports Fans ONLY
     .
© 2007

Best Software Act! is very popular CRM for small and mid-size organization. This system attracts business owner by its low price, plus system is very easy to use. However if your business is growing you should reach the moment to implement more advanced CRM solution. Natural question is - how do we convert the data from Act! to new CRM solution and the mapping of your objects for conversion. You would probably like to avoid operator data entry with potential numerous errors and mistypes. Assuming that you are IT specialist, we'll give you technical side of Act to MS CRM data migration:

? First you need to download Act! SDK from Best Software website

? Install Act! SDK on the computer, where you plan to do programming

? We'll use asynchronous data export/import model, this means that we'll design the system, containing two parts: export into XML and this XML file import into the CRM

? Lets code Act! data export application, we'll use C# to address Act Framework classes, we'll need these libraries:

using Act.Framework;
using Act.Framework.Activities;
using Act.Framework.Companies;
using Act.Framework.ComponentModel;
using Act.Framework.Contacts;
using Act.Framework.Database;
using Act.Framework.Groups;
using Act.Framework.Histories;
using Act.Framework.Lookups;
using Act.Framework.MutableEntities;
using Act.Framework.Notes;
using Act.Framework.Opportunities;
using Act.Framework.Users;
using Act.Shared.Collections;

? To connect to Act! database:

ActFramework framework = new ActFramework();

framework.LogOn("Act Username", "password", "SERVER", "Database");

? Now we need Act field names to map them with the fields in the MS CRM:

private void ShowContactsFieldsDescriptions(ActFramework framework) {

ContactFieldDescriptor[] cFields = framework.Contacts.GetContactFieldDescriptors();

ContactFieldDescriptor cField;

for(int x = 0; x < cFields.Length; x++)

{

cField = cFields[x];

Console.WriteLine("Table Name: {0}", cField.TableName);

Console.WriteLine("Column Name: {0}", cField.ColumnName);

Console.WriteLine("Display Name: {0}", cField.DisplayName);

Console.WriteLine("ACT Field Type: {0}", cField.ACTFieldType);

Console.WriteLine("");

}

}

? Let's get contact list and create the file for import instructions to MS CRM:

ContactList cList = framework.Contacts.GetContacts(null);

FileInfo t = new FileInfo("Contacts.xml");

StreamWriter stw = t.CreateText();

? Now we form export data:

for (int i = 0; i < cList.Count; i++) {

string strContactXml = "";

ContactFieldDescriptor cField;

Object oValue;

// First Name

cField = framework.Contacts.GetContactFieldDescriptor("TBL_CONTACT.FIRSTNAME");

oValue = cField.GetValue(cList[i]);

if (oValue != null && !(oValue.ToString().Trim().Equals("")))

strContactXml += "[CDATA[" + oValue.ToString() + "]]";

// Last Name

cField = framework.Contacts.GetContactFieldDescriptor("TBL_CONTACT.LASTNAME");

oValue = cField.GetValue(cList[i]);

if (oValue != null && !(oValue.ToString().Trim().Equals("")))

strContactXml += "[CDATA[" + oValue.ToString() + "]]";

else

strContactXml += "" + "N/A" + "";

// Salutation

cField = framework.Contacts.GetContactFieldDescriptor("TBL_CONTACT.SALUTATION");

oValue = cField.GetValue(cList[i]);

if (oValue != null && !(oValue.ToString().Trim().Equals("")))

strContactXml += "[CDATA[" + oValue.ToString() + "]]";

// Job Title

cField = framework.Contacts.GetContactFieldDescriptor("TBL_CONTACT.JOBTITLE");

oValue = cField.GetValue(cList[i]);

if (oValue != null && !(oValue.ToString().Trim().Equals("")))

strContactXml += "[CDATA[" + Regex.Replace(oValue.ToString(), " ", "
") + "]]";

? This is only portion of the data, that could be transferred into CRM, the whole list of fields is too long for small article, but your could design the whole list of desired fields. Please, pay special attention to replace
HTML tag - this is required for text data transfer into CRM

? Next is import application creation. We will not describe here connection to MS CRM details - please read Microsoft CRM SDK if you need this examples. We'll concentrate on the nature of the import.

The XML export file should look like this:

[CDATA[John]][CDATA[Smith]][CDATA[John]][CDATA[1234 W. Big River]][CDATA[Chicago]][CDATA[IL]][CDATA[123456]][CDATA[Toy Corporation]]{4F1849C3-9184-48B5-BB09-078ED7AB2DAD}

? Reading, parsing and MS CRM object creation look is relatively simple:

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

ICredentials credentials = new NetworkCredential(crmUsername, crmPassword, crmDomain);

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

bizUser.Credentials = credentials;

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

// CRMContact proxy object

Microsoft.Crm.Platform.Proxy.CRMContact contact = new Microsoft.Crm.Platform.Proxy.CRMContact ();

contact.Credentials = credentials;

contact.Url = crmDir + "CRMContact.srf";

CorrectXML("Contacts.xml", userAuth.UserId);

StreamReader reader = File.OpenText("Contacts.xml");

string input = null;

while ((input = reader.ReadLine()) != null)

{

string strContactId = contact.Create(userAuth, input);

Console.WriteLine("Contact {0} is created", strContactId);

log.Debug("Contact " + strContactId + " is created");

}

? Just consider in more details CorrectXML function - it places OwnerId into XML contact tree:

private void CorrectXML(string fileName, string userId) {

File.Move(fileName, fileName + ".old");

StreamReader reader = File.OpenText(fileName + ".old");

FileInfo t = new FileInfo(fileName);

StreamWriter writer = t.CreateText();

string input = null;

while ((input = reader.ReadLine()) != null)

{

input = Regex.Replace(input, "{_REPLACE_ME_}", userId);

writer.WriteLine(input);

}

reader.Close();

writer.Close();

File.Delete(fileName + ".old");

}

? Finally, we are launching export, import, opening MS CRM and looking at the contact list, transferred from Act!

? Separate task would be Sales data from Act!, Notes etc. - we plan to describe them in the future articles

Good luck with integration! If you want us to do the job - give us a call 1-630-961-5918 or 1-866-528-0577! help@albaspectrum.com

Andrew Karasev is Lead Software Developer in Alba Spectrum Technologies - USA nationwide Great Plains, Microsoft CRM customization company, serving clients in Chicago, Houston, Atlanta, Phoenix, New York, Los Angeles, San Francisco, San Diego, Miami, Denver, UK, Australia, Canada, Europe and having locations in multiple states and internationally ( http://www.albaspectrum.com )


MORE RESOURCES:

Acresso Software Finalizes Intraware Acquisition
CNNMoney.com - 17 hours ago
Acresso Software (Acresso), a privately-held company and an investment of private equity firm Thoma Bravo, LLC, announced today it has completed the ...


BBC News

Apple unveils software updates, new laptop
San Francisco Chronicle,  USA - Jan 7, 2009
The presentation included updates to the iLife and iWork software suites, a new 17-inch MacBook Pro with an 8-hour battery and a new digital rights ...
Video: Steve Jobs Weight Loss Due to Hormone Imbalance AssociatedPress
Macworld goes for the soft sell with budget-minded software USA Today
Apple's Macworld Surprise Is the Software PC Magazine
The Associated Press - Reuters
all 2,848 news articles


ITProPortal

Sun Acquires Cloud Computing Software Supplier, Q-Layer
InformationWeek, NY - 10 hours ago
The Belgian company makes data center modeling and management software that helps companies organize their computing resources as a cloud computing layer. ...
Sun Acquires Cloud Computing Automator Q-layer eWeek
Sun Buys Cloud-computing Vendor Q-layer PC World
Sun acquires cloud computing vendor ZDNet
TheStreet.com - ITProPortal
all 92 news articles


Earthtimes (press release)

IBM Lotus Delivers New "Social" Notes and Free Symphony Software ...
CNNMoney.com - Jan 6, 2009
At Macworld, IBM (NYSE: IBM) today announced the availability of Lotus Notes 8.5 collaboration software with social computing features for all Mac OS X ...
Macworld: IBM finalizing free Symphony office suite for Macs Computerworld
Lotus Notes 8.5 ships, free IBM Symphony suite coming MacNN
WebEx goes mobile on iPhone; Notes 8.5 ships on Macs ZDNet Blogs
VNUNet.com - eWeek
all 55 news articles


Product Reviews

Microsoft's MacBU embraces the "software plus services" mantra
Seattle Post Intelligencer - Jan 6, 2009
In an interview, Eric Wilfrid, who was appointed general manager of the MacBU in late October, framed both moves as part of Microsoft's shift to a "software ...
Apple Security: Time To Stop Feeling Superior? InformationWeek
Microsoft touts Mac-Windows collaboration at Macworld Computerworld
Macworld.Ars: Microsoft intros 2 new apps for Mac Office users Ars Technica
Baltimore Sun - Forbes
all 130 news articles


Times Online

ITunes embraces 3-tier pricing, will remove anti-copy software
Los Angeles Times, CA - Jan 6, 2009
Apple also updated much of its software. The latest version of iPhoto scans for individual faces so computer users can label photos of friends or family, ...
Apple removes protection software from songs TourDates.Co.Uk
Apple changes iTunes prices; removes copy protection USA Today
Apple Offers All ITunes Songs Without Copy Protection Bloomberg
Shiny Shiny - Ontario Now
all 1,171 news articles


MacNN

Autodesk offers three new Mac creative software tools
Macworld, CA - 17 hours ago
by Peter Cohen, Macworld.com Autodesk, which is not participating in Macworld Expo this week, introduced three new creative software tools for the Mac ...
Autodesk releases Toxik, Mudbox, Stitcher for Mac MacNN
Autodesk adds Mac versions of Toxik, Mudbox and ImageModeler 2009 Digital Arts Online
Autodesk Announces Three New Software Releases for the Mac MCADCafe (press release)
all 35 news articles


Bonaire Software Solutions Announces EMPOWER/BI Business ...
MSNBC - 16 hours ago
BOSTON, MA - Bonaire Software Solutions, LLC today announced its new business intelligence product -- EMPOWER/BI. "Bonaire's EMPOWER/BI, designed ...


CNET News

FileMaker Banks on Ease of Use, Flashy Interface With New Database ...
eWeek,  NY - 17 hours ago
By Brian Prince FileMaker released version 10 of its database software this week. FileMaker hopes a redesigned interface and a number of feature ...
FileMaker Pro 10 Gets New Look InformationWeek
all 66 news articles


Updated FlukeView(R) Forms 3.4 Software Enhances Compatibility ...
MSNBC - 16 hours ago
With FlukeView Forms documenting software, the logging capabilities of handheld test equipment can be used to solve tough problems. ...

Software - Google News


Google
 

Home | Site Map | 101InfoLinks.com | Best Book Shop | Sports Fans ONLY
     .
© 2007