• David Ankori 16
  • NEWBIE
  • 9 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi Everyone!

I need to disable creating Contacts from pre-chat form. According to the Salesforce documentation it's possible with this code:

embedded_svc.settings.extraPrechatInfo = [{"entityFieldMaps":[{"doCreate":false,"doFind":true,"fieldName":"LastName","isExactMatch":true,"label":"Last Name"},{"doCreate":false,"doFind":true,"fieldName":"FirstName","isExactMatch":true,"label":"First Name"}, {"doCreate":false,"doFind":true,"fieldName":"Email","isExactMatch":true,"label":"Email"}],"entityName":"Contact","saveToTranscript":"Contact","showOnCreate":true}];
I tried it out in my dev org with a visualforce page and in my customer's  sandbox with a dummy website, and it didn't work.  Contacts are still created. However it works for other parameters. E.g. setting "saveToTranscript" to an empty string disables saving contacts to transcript in the Console. 
Does anybody has an idea, how I can disable creating contact, when the pre-chat form is submitted by visitor. 

Thanks in advance!
 
I can't pass this challenge Process Design Without Limits Learn About Object Design-Time Limits. I have below error message. Can anypne please help.

Challenge Not yet complete... here's what's wrong: 
Changing the owner of the Account record failed to update the 'Account_Owner_Name_Process__c' field for the Case object . Make sure that the process is correct and that it is activated.https://trailhead.salesforce.com/modules/process-design-without-limits/units/process-design-without-limits-object