When you go to “CRM | Periodic | Import | Leads” you receive the following message in the InfoLog:
This is because the CRM Import in Dynamics AX 2009 is based on XML files and AIF Classes. Before CRM Leads can be imported from an XML file, the AxBC classes to be used during the import have to be set up and an XSLT file (transform) to do the conversion has to be specified.
You need the following files to be able to do this:
- SysImport.Leads.xsl
- SysImport.Leads.xsd
- Leads.xml
(the files are attached to this entry)
- Start Dynamics AX 2009 Client
- Go to Basic | Setup | Import | Documents
- Enter the following values in the Documents form:
Name: CRMLead - Description: CRM Lead Document Class
- Document Class: AxdSysImportLeads
- Click at the “Validate” button
- Verify an InfoLog shows up with the following message:
“Information: Validation passed” - Close the InfoLog
- Close the Documents form
- Go to Basic | Setup | Import |Transformations
- Enter the following values in the Transformations form:
Name: XmlToLead - Description: Converts generic Xml to Lead
- Document Class: CRMLead
- Click at the “Load” button
- Select the file “SysImport.Leads.xsl”
- Click at the “Validate” button
- Verify an InfoLog shows up with the following message:
“Information: Validation passed” - Go to the tab “General”
- Verify that “Type of transformation is” the value “XSLT”
- Verify the for the group “XSLT” the field “Content” is filled with the content of the xsl file
- Close the Transformations form
- Go to Basic | Setup | Import | Formats
- Enter the following values in the Formats form:
Name: XmlFormat - Description: Processes Xml Files
- Extenstions: *.xml
- Document Class: CRMLead
- Active: <Checked>
- Save the record ([CTRL]+[S])
- Click at the “Transformations” button
- Enter the following Values on the Format transformations form:
Transformation: XmlToLead - Close the Format transformations form
- Click on button “Validate” on the Formats form
- Verify that the Import form shows up
- Select the file “Leads.xml”
- Click on OK
- Verify an InfoLog shows up and contains the following message:
“Validation passed” - Close the Formats form
The CRM Leads import was now completely set up and you can start the import by going to:
CRM | Periodic | Import | Leads.
Please note:
If you received an error message on step 9 during validation “Field ‘Lead ID’ must be filled in.” make sure you have selected an automatic counting Number sequence for “Lead ID”.
–author: | Alexander Lachner |
–editor: | Alexander Lachner |
–date: | 23/04/2009 |