Skip to main content
Bring your team and maximize your impact at Dreamforce. Register three or more to unlock $999 passes.

Estimación de tiempo

Temas

Preguntar a la comunidad

Import Data and Test the App

You now have a fully functional application. You built the data model, and in parallel behind the scenes, the user interface was created for you. And a full SOAP and REST API layer was automatically created to integrate your Travel Approval objects with objects in other systems. In this final step, you import some data and test the app.

Import Departments

Before you test your application, first load some sample data into the Departments object.

  1. From Setup, click the Home tab.
  2. In the Quick Find box, search for and select Data Import Wizard.
  3. Click Launch Wizard! 

Data Import Wizard screen with Launch Wizard! Button highlighted.

  1. Click the Custom objects tab and select the Departments object.
  2. Next, select Add new records.
  3. Drag and drop the Departments.csv file you downloaded in the first unit to the Drag CSV file here to upload section, or click the CSV icon and browse to select your file. Select Next.
  4. Since the field names in the CSV file (CSV Header) are the same as the field names in your object (Mapped Salesforce Object), the fields are automatically mapped. Click Next

Screen showing field mapping for the Departments object.

  1. The next screen gives you a summary of your data import. Click Start Import.
  2. Click OK on the popup.

This takes you to the bulk import summary window that shows that the process has completed and 16 records have been successfully imported or processed. You also get an email notification confirming the import.

Test the App

Now that you imported department data, you can test out the app.

  1. Click App Launcher icon to open the App Launcher and navigate back to your Travel App.
  2. Click the Departments tab.
  3. Click the Recently Viewed (1), and select All (2).

Departments tab of the Travel app showing navigation from (1) Recently Viewed to (2) All.

  1. Click any one of the departments to drill down into the Department details. For example, click Contract Management and check out the department details including the Department Code field you created, along with some default fields.

Screen for Contract Management in the Departments tab of the Travel App.

Now, create a sample travel approval and associate a few expense estimates to it.

  1. Click the Travel Approvals tab and click New.
  2. Enter these details.

Parameter

Value

Purpose of Trip

Attend Dreamforce

Status

Draft

Trip Start Date

(pick any date you want)

Trip End Date

(pick any date you want)

Out-of-State

Check/select this option

Destination State

CA

Department

Technology

  1. Click Save. You now have a travel approval record.

New travel approval record in the Travel Approvals tab of the Travel App.

Finally, add expense estimates for airfare and hotel to the travel approval. Click the Related tab.

  1. Click New, then enter these details.
    • Amount: 450
    • Expense Type: Airfare
  1. Click Save & New.
  2. Click New then enter these details.
    • Amount: 870
    • Expense Type: Hotel
  1. Click Save.

Congratulations! You successfully created a travel app for your organization. To build the app, you created custom objects for Departments, Travel Approvals, and Expense Items, and you imported department data. Finally, you tested the app by creating the first Travel Approval record. In the next badge, you learn how to customize the user interface, work with list views, and enable Chatter.

Comparta sus comentarios sobre Trailhead en la Ayuda de Salesforce.

Nos encantaría conocer su experiencia con Trailhead. Ahora puede acceder al nuevo formulario de comentarios cuando quiera desde el sitio de la Ayuda de Salesforce.

Más información Continuar para compartir comentarios