> ## Documentation Index
> Fetch the complete documentation index at: https://fillout.com/help/llms.txt
> Use this file to discover all available pages before exploring further.

# Create records on multiple Salesforce objects

> Let respondents create new Salesforce records from your main form and subform at the same time.

## Overview

Connecting a Fillout form to Salesforce enables users to automatically sync form responses into a Salesforce object. Existing fields are [mapped automatically](https://www.fillout.com/help/salesforce#how-it-works); however, you can still make edits and updates with [manual mapping](https://www.fillout.com/help/additional-integration-mappings#how-to-map-fields-manually).

Fillout also lets you **create records on multiple objects with a single form** using master-detail relationships. A **master-detail relationship** creates a parent–child connection between two Salesforce records. Add this to your form to let respondents fill out a parent form and a subform to create related records, adding as many as needed.

## How to set up

**1. Add a relationship field**

On your [Salesforce-connected form](https://www.fillout.com/help/salesforce#how-it-works), add a **Relationship field** from the left-hand panel. These are marked by the **magnifying glass icon** .

![Salesforce fields tab with lookup fields like Account ID and Individual ID](https://mintcdn.com/fillout-005a867b/AewNg3fSz3sCDbOK/images/salesforce-fields-choices.png?fit=max\&auto=format\&n=AewNg3fSz3sCDbOK\&q=85\&s=fb71389655d9ffc38259da9634dfe38c)

> [!WARNING]
>
> Objects must be linked via a master-detail relationship, not a lookup relationship. Additionally, required Salesforce fields must be filled out by respondents in order for the results to sync.

For example, let's link our Fillout form to the Contact object. For the relationship field, we'll pick Individual ID. When a respondent adds a new record, a small popup form (subform) will open for entering the related information.

**2. Enable record creation**

Click the field's **settings icon**  to enable **Can create new records?**.

![Record picker for a Salesforce lookup with Can create new records turned on](https://mintcdn.com/fillout-005a867b/AewNg3fSz3sCDbOK/images/salesforce-record-picker-create.png?fit=max\&auto=format\&n=AewNg3fSz3sCDbOK\&q=85\&s=ea40a55911dd5cff9fa58d711ee2649e)

In the right-hand panel, you can also:

* **Edit record creation form** - modify the subform used for creating new records
* **Only show new records** - let respondents create new records, but not select existing records
* **Pass information to subform** - specify fields or info from your main form to the subform

> [!WARNING]
>
> You have to register URL parameters in your subform first. Check out [this short guide](https://www.fillout.com/help/url-parameters#how-to-add-a-url-parameter-or-hidden-field).

**3. Publish and share**

When everything's set, click **Publish** to make the changes reflect. Every form submission will now be created as records on both Salesforce objects.

![Record picker search with a Create new button](https://mintcdn.com/fillout-005a867b/AewNg3fSz3sCDbOK/images/salesforce-record-picker-create-new.png?fit=max\&auto=format\&n=AewNg3fSz3sCDbOK\&q=85\&s=de4e0fdad574db64add412d845168eaf)

## Salesforce guides

> [card] Create a Salesforce form
>
> Add or update records with a form.

> [card] [Update Salesforce records](https://fillout.com/help/salesforce-update-form.md)
>
> Edit existing records and pre-fill fields.

Still have questions?

Our team is happy to help. Start a live chat using the

chat bubble  in the bottom right, or email us at

[support@fillout.com](mailto:support@fillout.com)

[Contact us](mailto:support@fillout.com)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.