Salesforce Integration: Create a record with a relationship to an account

  • kanakpatel
    Asked on June 27, 2024 at 12:12 PM

    Hi we are trying to create POC where we would like to map SF lookup field to Jotform form field.

    for example

    I have field create in jot form called customer name

    when i try to map this field in SF lookup field i need ID. How can i do this?

  • Arghya JotForm Support
    Replied on June 27, 2024 at 12:25 PM

    Hi Kanak,

    Thanks for reaching out to Jotform Support. If you can share the link to your form, I can check it out and see what’s going on. If you can take a screenshot of what’s happening, that will help us to better understand what’s going on. We have a guide about how to do that here. You can check this guide for more information.

    Once we hear back from you, we'll be able to move forward with a solution.

  • kanak1983
    Replied on June 27, 2024 at 12:31 PM

    here is the form link

    https://form.jotform.com/241584624505053

    There is field name called Customer name and would like to map to SF Account name with ID.

    so basically when user type customer name = ABC and submit data

    it will submit in SF side Customername = 123456 (ID)

    so i'm looking for is there anyway i can build look up data table and when user try to type customer name it prepopulates name and when submit data it submit ID.

    Salesforce Integration: Create a record with a relationship to an account Image 1 Screenshot 20

  • Gian_D JotForm Support
    Replied on June 27, 2024 at 12:59 PM

    Hi Kanak,

    I understand what you’d like to do, but I’ll need a bit of time to work out a solution. I’ll get back to you shortly.

  • kanak1983
    Replied on June 27, 2024 at 1:06 PM

    Thank you for quick reply! hopefully i can hear back soon!

  • Gian_D JotForm Support
    Replied on June 27, 2024 at 3:57 PM

    Hi Kanak,

    If I understand correctly, you want to create a record, that has a relationship to the account in your Salesforce. You can integrate Salesforce and create two actions to achieve that workflow. I cloned your form, and integrated Salesforce into it for a demonstration. Check out the screencast below:

    Salesforce Integration: Create a record with a relationship to an account Image 1 Screenshot 100

    As you can see, I was able to create a record, that has a relationship to an account in Salesforce. Let me show you how to do it:

    1. In Form Builder, click on Settings in the orange navigation bar at the top of the screen, and in the menu that opens on the left side of the page, click on Integrations.
    2. Search for Salesforce, and click on Salesforce.

    Salesforce Integration: Create a record with a relationship to an account Image 2 Screenshot 111

    3. Authenticate your Salesforce account.
    4. Click on Find Existing Record, and choose Account in the dropdown.
    5. Map Account Name to Customer Name.

    Salesforce Integration: Create a record with a relationship to an account Image 3 Screenshot 122

    6. Toggle on the switch for Create a Record.
    7. Map Account Name to Customer Name.
    8. Click on Save Action.

    Salesforce Integration: Create a record with a relationship to an account Image 4 Screenshot 133

    9. Click on Add New Action.

    Salesforce Integration: Create a record with a relationship to an account Image 5 Screenshot 144

    10. Choose Create a Record, and select Case in the dropdown.
    11. Map the required fields, and map Account ID to "Step 1. Find Account Record."

    Salesforce Integration: Create a record with a relationship to an account Image 6 Screenshot 155

    12. Click on Save Action.

    Salesforce Integration: Create a record with a relationship to an account Image 7 Screenshot 166

    13. Click on Save Integration.

    Salesforce Integration: Create a record with a relationship to an account Image 8 Screenshot 177

    14. Click on Finish.

    Salesforce Integration: Create a record with a relationship to an account Image 9 Screenshot 188

    That's it. Let us know if you have any other questions.

  • kanak1983
    Replied on June 27, 2024 at 4:42 PM

    Thank you it works exactly how i wanted! but we wanted to show auto populate name for customer name when user enter data in customer name field which come from SF accounts. is it possible?

    i could able to do in below screen shot with autocomplete widget but then i have to enter individual items. it would be nice if i can upload spreadsheet or use table to link this column to auto populate name when user type. make sense?

    Salesforce Integration: Create a record with a relationship to an account Image 1 Screenshot 20 Screenshot 10

    right now if they enter exact name then it will linked up with existing record otherwise send empty value.

  • Gian_D JotForm Support
    Replied on June 27, 2024 at 5:00 PM

    Hi Kanak,

    As for your other question, I've moved that to a new thread. You can check that out here.

    Let us know if there’s anything else we can help you with.

 
Your Answer