Use the following code in the Code Snippet. doFind and isExactMatch are set to false for Email, First Name and Last Name. But, doCreate is set to true for Email, First Name and Last Name because when the contact record is created, it will have the values passed from these…