How to do it...

  1. In Visual Studio, navigate to File | New | Project...
  2. Create a new package of type CRM Package by navigating to Visual C# | CRM SDK Templates | CRM Package. Give it the name PacktPackageDeployment, shown as follows:
  1. Add the exported managed solution Packt ZIP Packt_0_0_0_1_managed.zip to PkgFolder.
  2. Add AccountRecords.csv to PkgFolder.
  1. Ensure that all added files are always copied to the output folder. Right-click on each file, click on properties, and select Copy always under Copy to Output Directory, as highlighted in this screenshot:
  1. Update ImportConfig.xml with the following details:
<?xml version="1.0" encoding="utf-16"?> 
<configdatastorage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
installsampledata="false"
waitforsampledatatoinstall="true"
agentdesktopzipfile=""
agentdesktopexename=""
crmmigdataimportfile="">
<solutions>
<configsolutionfile solutionpackagefilename="Packt_0_0_0_1_managed.zip"
overwriteunmanagedcustomizations="true"
publishworkflowsandactivateplugins="true"/>
</solutions>
<filestoimport>
<configimportfile filename="AccountRecords.csv"
filetype="CSV"
associatedmap=""
importtoentity="account"
datadelimiter=""
fielddelimiter="comma"
enableduplicatedetection="true"
isfirstrowheader="true"
isrecordownerateam="false"
owneruser=""
waitforimporttocomplete="false"/>
</filestoimport>
<filesmapstoimport>
</filesmapstoimport>
</configdatastorage>
  1. Compile your solution.
  2. Copy PkgFolder with all its content from the solution output folder to the same folder as PackageDeployer.exe <SDK>ToolsPackageDeployer.
  3. Copy PacktPackageDeployment.dll from your output folder to the same folder from the previous step.
  4. Run PackageDeployer.exe and follow the familiar login prompt.
  5. Follow the prompts by clicking on Next until you reach the final page. Click on Finish to end the process.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.79.70