How do I create the Custom object needed for VisitReport?
Open the Salesforce setup and open the Object Manager.
Click on "Create" and "Custom Object".
Make the entries as in the screenshot and click on "Save".
With this we have created the Custom object, into which the reports from the VisitReport will be taken later.
Next, we need to link the reports to the associated Leads/Contacts/Accounts:
Click on "Fields & Relationships" and on "New".
Choose "Lookup Relationship" and click on "Next" below.
At "Related To", select "Account" and click "Next".
In the following steps, you can make settings for field-level security and page layout. If the VisitReports should be visible for all users, click on "Next" in Step 4 and Step 5 and on "Save" in Step 6.
Repeat steps 4 to 7 for "Lead" and "Contact".
Afterwards it should look like this:
Now we need to add individual fields in the custom object in which the answers from the report are stored:
Now create a field in the custom object "VisitReport" for each question of your VisitReport template. You can choose the field type depending on the type of question in the VisitReport template, e.g. Text, Text Area, Date, Number or Picklist.
Now it could look like this. The four questions "Industry", "Follow Up", "Product Interest" and "Company Size" were added here as examples:
View in the setup:
View for the user:
Finally, we display the entity "Notes & Attachments" in the page layout of the custom object. This is where the notes from the report end up later.
The customization in Salesforce is now complete. Now we have to create a CRM mapping for you. Please send us an e-mail to firstname.lastname@example.org and tell us the API name of the custom object you just created.