How to create a contact, opportunity, or other object record instead of a lead in Salesforce

By default, when a new invitee schedules, the Salesforce flow will create a Lead. To create a different object record instead, such as a contact or opportunity, you can edit the flow's Create Records: Create New Lead element.

This guide walks you through changing the flow to create a Contact instead of a Lead. You can also replace this with any other object record of your choice.

Create a contact instead of a lead in Salesforce

Version 2 Version 1.11
  1. In Salesforce Setup, search for Flows.
  2. Select Flows.
    • If you haven't customized the CreateEventTemplate before, you'll need to create a new flow based on the template. To do so, you can open the CreateEventTemplate. Here you can customize it directly then select Save as. Saving it will create a new flow. You can call the new flow something like "CreateEvent."
    • If you've already customized the CreateEventTemplate flow, then open your customized flow.
  3. Select the Create Records: Create New Lead element.
    SF__create_records_create_new_lead.png
  4. Under Edit Create Records, at Label, enter Create New Contact.
  5. At API Name, update the name to Create_New_Contact.
  6. Under Create a Record of This Object, at Object, enter Contact.
  7. Under Set Field Values for the Contact, map the following Fields to their corresponding Values from Calendly:
    1. For the first field:
      • Set the Field to FirstName.
      • For the Value, select Calendly__CalendlyAction__c
      • Select Invitee First Name.
    2. Select +Add Field. For the second field:
      • Set the Field to LastName.
      • For the Value, select Calendly__CalendlyAction__c
      • Select Invitee Last Name.
    3. Select +Add Field. For the third field:
      • Set the Field to Email.
      • For the Value, select Calendly__CalendlyAction__c
      • Select Invitee Email.
    4. Select +Add Field. For the fourth field:
      • Set the Field to OwnerId.
      • For the Value, select OwnerId.
  8. Check the box Manually assign variable.
  9. Under Store Contact ID in Variable, at Variable, select WhoRecordId.
    SF__edit_create_records.png
  10. Select Done.
  11. To save the flow, select Save. Select Save As to save the modified version of the flow.
  12. To activate the flow, select Activate. Note: you will also need to deactivate the CreateEventTemplate, so you don’t have duplicate events in Salesforce.