Formcrafts - a form and survey platform for Salesforce, HubSpot, etc
  1. Templates
    1. All templates illustration
      All templates
    2. Application forms illustration
      Application forms
    3. Calculation forms illustration
      Calculation forms
    4. Lead generation forms illustration
      Lead generation forms
    5. Customer service illustration
      Customer service
    6. Evaluation forms illustration
      Evaluation forms
    7. Survey and feedback illustration
      Survey and feedback
    8. Operations forms illustration
      Operations forms
    9. Payment forms illustration
      Payment forms
    10. Booking and registration illustration
      Booking and registration
    11. Salesforce forms illustration
      Salesforce forms
    12. Other forms illustration
      Other forms
  2. Features
    1. 18 Form Fields illustration
      18 Form Fields
    2. 19 Integrations illustration
      19 Integrations
    3. Conditional Logic illustration
      Conditional Logic
    4. Multi-step Forms illustration
      Multi-step Forms
    5. Calculations illustration
      Calculations
    6. Partial Submissions illustration
      Partial Submissions
    7. Save & Resume illustration
      Save & Resume
    8. Payments illustration
      Payments
    9. Hidden Fields illustration
      Hidden Fields
    10. Engagement analysis illustration
      Engagement analysis
    11. Dynamic Dropdowns illustration
      Dynamic Dropdowns
    12. Dynamic Checkboxes illustration
      Dynamic Checkboxes
    13. Dynamic Tables illustration
      Dynamic Tables
    14. Multilingual forms illustration
      Multilingual forms
  3. Pricing
  4. Help
  5. Login
  6. Signup
    →
  • Help index
  • Features
    • Conditional logic
    • Prefill forms
    • Multi-step forms
    • Calculations
    • Partial submissions
    • Field references
    • Save and resume
    • Hidden fields
    • Dynamic lookup
    • Dynamic tables
    • Dynamic multiple choice
    • Dynamic dropdowns
    • Workflows
    • Multilingual forms
    • Privacy mode
    • Success message
    • Form redirect
    • GA/GTM
    • Accept payments
    • Linked forms
    • Disable form
  • Styling
    • Custom CSS
    • Custom fonts
    • Color scheme
    • Form background
  • Analytics
    • Test mode
    • Overview
    • Field analytics
    • Form engagement
  • Workflows
    • Send emails
    • Form redirect
    • Success message
    • Webhooks
    • Create PDF
    • ActiveCampaign
    • Asana
    • Mailchimp
    • Front app
    • Freshdesk
    • Google Sheets
    • Pipedrive
    • Linear
    • Klaviyo
  • Sharing
    • Custom form link
    • Embed on a page (inline)
    • Embed on a page (popup)
    • Embed in emails
    • Embed on WordPress
    • Embed on Shopify
    • Embed on Squarespace
  • Salesforce
    • Overview
    • Create records
    • Create multiple records
    • Update records
    • Related records
    • Dynamic picklists
    • Dynamic checkboxes
    • Dynamic tables
    • Attach files
    • Create PDFs
    • Form prefill
    • Experience Cloud Embed
    • Record Page Embed
  • HubSpot
    • Overview
    • Create contact form
    • Create lead capture form
    • Create customer survey
    • Prefill HubSpot form
    • Embed on HubSpot page
    • Uninstall
  • Zendesk
    • Create ticket form
    • Create CSAT survey
    • Embed on Help Center
    • Prefill ticket form
  • Admin
    • Users
    • Custom domain
    • Custom email domain
    • Vanity subdomain
    • Subscription
  • Developers
    • Embed Library
    • API keys
    • API v1
    • API v2
  • Others
    • Partner program
    • GDPR compliance
    • Workflow logs
    • White labeling
    • Using JSONPath
    • Form speed
    • Zapier
    • Entity Change Notice
  • Contact
  1. Help
  2. ›
    Salesforce
  3. ›
    Create multiple records

Create Multiple Records in Salesforce

On this page
  1. Introduction
  2. Create a new form
  3. Autofill task statuses
  4. Create a workflow
  5. Configure the contact action
  6. Configure the tasks action
  7. Optional settings
    1. All or none
    2. Disable assignment rules
  8. Save and test
  9. Save and test
  10. Notes
    1. Conditional workflows

Introduction

In this tutorial, we will learn how to create a form that creates multiple Salesforce records from a table entry field. Each row in the table will be used to create a separate Salesforce record.

Our form will:

  1. Create a new Salesforce contact.
  2. Use a table entry field called Tasks to collect multiple tasks.
  3. Create one Salesforce task for each row in the Tasks table.
  4. Associate each task with the contact created by the first workflow action.

Create a new form

On your Formcrafts dashboard ↗ click on Add Form → Start from scratch. Enter a Form name and hit enter. This will create a new form.

You can also create a new form by clicking on Add Form → Use a Template and selecting a template. This would allow you to skip this step.

Now add these fields to your form using the Add field button on the top-left corner of the form editor:

  1. First name (One line text)
  2. Last name (One line text)
  3. Email (Email)

Next add a table entry field called Tasks.

Add these columns to the Tasks table:

  1. Subject (Input)
  2. Status (Dropdown)
  3. Due (Date)
Form editor screen for table field

Autofill task statuses

The Status column should use the same values that Salesforce accepts for tasks.

Edit the Status column in the Tasks table, and use Options → Autofill → Status to populate the dropdown options from the Status picklist.

Tasks table Status column using Salesforce Task Status autofill

Autofill copies the current Salesforce options into the dropdown. If the task status options change later in Salesforce, you should update the column options in Formcrafts as well.

Create a workflow

Click on the Workflows button on the top-left corner of the form editor, and then click on the Add workflow button.

Now edit the new workflow, and click on Add action. Under (select action) find Salesforce, and click on Connect to Salesforce.

Connect to Salesforce organization

This will open a popup window where you can connect to your Salesforce organization.

Configure the contact action

Our first action should be Create a Contact.

Use the Field mapping section to map the regular form fields to Salesforce contact fields:

  1. Map First name to First Name.
  2. Map Last name to Last Name.
  3. Map Email to Email.

The created contact will be available to later workflow actions. We will use this value in the next action to associate the tasks with the new contact.

Salesforce contact create action with field mapping

Configure the tasks action

In the same workflow, click on Add action again and select Salesforce.

Select Multi create (always) as the Salesforce action, and select Task as the Salesforce object.

Use the Table field setting to select the Tasks table from your form. Each non-empty row from this table will be used to create a separate Salesforce task.

Use the Field mapping section to map the table columns to Salesforce task fields:

  1. Map Subject to Subject.
  2. Map Status to Status.
  3. Map Due to Activity Date.

To associate each task with the contact created by the first action, map Salesforce Contact #1 to the Salesforce field Name ID.

Salesforce multi create task action with Tasks table selected and field mapping

Each row in the Tasks table can use different values for Subject, Status, and Due. Values mapped from regular form fields or previous workflow actions will be reused for every task record.

Optional settings

All or none

Enable All or none if the entire batch should be rolled back when any record fails.

When this setting is off, Salesforce can create the valid records and return errors for the rows that failed. When this setting is on, Salesforce creates either all records or none of them.

Disable assignment rules

Enable Disable assignment rules if you do not want Salesforce assignment rules to run for the created records.

Save and test

Save and test

Click on the Preview button on the top-right corner of the form editor, and submit the form to test the workflow.

Formcrafts keeps a record of all successful and failed workflows which you can view using the Logs button on the top-left corner of the form editor.

Learn more about Workflow logs.

Submit the form with multiple rows in the table entry field. Then open the workflow logs to confirm how many records were created and whether any rows failed.

Workflow logs panel in Formcrafts

Notes

Conditional workflows

By default the Salesforce action(s) is triggered on each form submit. We can add conditions to our workflow to trigger the action(s) only when certain conditions are met. Edit your workflow and click on Add condition. Here you can add conditions, or even create condition groups.

Workflow with a condition
Making workflows conditional

Empty table rows are ignored. If the selected table entry field has no rows to process, the Salesforce action is skipped.

For single-record workflows, see create a record in Salesforce. For workflows that first find another Salesforce record, see work with related records in Salesforce.

Minimal, fast, and powerful. Try now.
Formcrafts - a form and survey platform for Salesforce, HubSpot, etc

Bodhweb GmbH,
Moltkestraße 105,
40479 Düsseldorf

Salesforce AppExchange partner logo HubSpot app partner logo
Templates
Application formsLead generation formsSurvey & feedback formsEvaluation formsSupport request formsBooking & registrationContact forms
Comparisons
vs AllFormAssemblyTypeformJotformWufooSurveyMonkey
Features
Conditional logicSalesforce formsHubSpot formsZendesk ticket formsEmail formsIntegrationsForm fields
Resources
Help centerBlogDeveloper APIGDPRStatusReport abuseContact us
Company
About usNonprofitCase studiesSecurityTerms and privacyImpressum