官术网_书友最值得收藏!

Exporting data through Data Export

For the next imports, we will be needing the Salesforce record IDs of the newly created Person and Company objects. To get those IDs, we'll need to export that data. Let's do that using the built-in Data Export functionality:

  1. Navigate to Setup | Data Export and click on Export Now. Leave the defaults on top of the page, and select our two custom objects, Person__c and Company__c. The custom objects are at the bottom of the page:

  1. After selecting the objects you want to export, hit Start Export!. You'll get the following confirmation screen, telling you that the export is now scheduled and that you will be receiving an email when the data is ready:
  1. The email will look like this, so just click on the link to download the export file(s):
  1. Click the download link below the Action field. This will download a .zip file, containing a .csv file for each object, containing its records. Save the .zip file in any folder you would like or on your desktop. When you open it, it should look like the following:
  1. Let's look at the contents of the Person__c file. This file contains all fields that currently exist for the Person__c object to which you have access, including system fields such as CreatedDate and CreatedBy. The most important column is the first column, called Id. This is the Salesforce record ID for each record, and, in the next sections when we need to create any relationship between records, we will need to fill the lookup fields with the ID of the record we want to associate:

Remember, for example, our The Godfather movie, which has a lookup field called Director, which is a relationship to a Person record that corresponds to that director, right? So, when we load our movies, we will need to populate the Director field with the ID of the Person record that corresponds to Francis Ford Coppola, highlighted in green in the following screenshot:

This means that, for the next imports, we will first have to do some Excel magic by performing VLOOKUP functions to populate the lookup columns with their correct corresponding record IDs from those export files. Don't worry, we'll go through it step by step.

So, that's one way to load data into Salesforce by using the Data Import Wizard, and one way to export data from Salesforce by using the Data Export functionality.

主站蜘蛛池模板: 璧山县| 松潘县| 淄博市| 大同县| 古蔺县| 镇沅| 宁阳县| 湘阴县| 溧水县| 梨树县| 石狮市| 汾阳市| 多伦县| 阿克陶县| 乐清市| 长兴县| 普洱| 镇安县| 牙克石市| 行唐县| 旬阳县| 江永县| 大港区| 黔江区| 宿州市| 新平| 潍坊市| 共和县| 田东县| 池州市| 凉山| 牟定县| 五常市| 安泽县| 通许县| 盈江县| 旌德县| 乐山市| 尉犁县| 同江市| 颍上县|